10 lines
468 B
TypeScript
10 lines
468 B
TypeScript
import {ElementSchemaRegistry, UrlResolver, XHR} from '@angular/compiler';
|
|
import {createUrlResolverWithoutPackagePrefix} from '@angular/compiler/src/url_resolver';
|
|
import {MockSchemaRegistry, MockXHR} from '@angular/compiler/testing';
|
|
|
|
export var TEST_PROVIDERS: any[] = [
|
|
{provide: ElementSchemaRegistry, useValue: new MockSchemaRegistry({}, {})},
|
|
{provide: XHR, useClass: MockXHR},
|
|
{provide: UrlResolver, useFactory: createUrlResolverWithoutPackagePrefix}
|
|
];
|