2016-04-28 20:50:03 -04:00
|
|
|
import {provide} from '@angular/core';
|
|
|
|
import {MockSchemaRegistry, MockXHR} from '@angular/compiler/testing';
|
|
|
|
import {ElementSchemaRegistry, XHR, UrlResolver} from '@angular/compiler';
|
|
|
|
import {createUrlResolverWithoutPackagePrefix} from '@angular/compiler/src/url_resolver';
|
2015-09-14 18:59:09 -04:00
|
|
|
|
2016-04-28 20:50:03 -04:00
|
|
|
export var TEST_PROVIDERS: any[] = [
|
2016-06-02 20:30:40 -04:00
|
|
|
{provide: ElementSchemaRegistry, useValue: new MockSchemaRegistry({}, {})},
|
|
|
|
{provide: XHR, useClass: MockXHR},
|
|
|
|
{provide: UrlResolver, useFactory: createUrlResolverWithoutPackagePrefix}
|
2015-10-12 13:23:51 -04:00
|
|
|
];
|