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[] = [
|
2015-10-12 14:30:34 -04:00
|
|
|
provide(ElementSchemaRegistry, {useValue: new MockSchemaRegistry({}, {})}),
|
2015-10-15 19:03:23 -04:00
|
|
|
provide(XHR, {useClass: MockXHR}),
|
2016-01-06 17:13:44 -05:00
|
|
|
provide(UrlResolver, {useFactory: createUrlResolverWithoutPackagePrefix})
|
2015-10-12 13:23:51 -04:00
|
|
|
];
|