2015-10-11 01:11:13 -04:00
|
|
|
import {provide, Provider} from 'angular2/src/core/di';
|
2015-09-14 18:59:09 -04:00
|
|
|
import {MockSchemaRegistry} from './schema_registry_mock';
|
2015-11-05 17:07:57 -05:00
|
|
|
import {ElementSchemaRegistry} from 'angular2/src/compiler/schema/element_schema_registry';
|
|
|
|
import {MockXHR} from 'angular2/src/compiler/xhr_mock';
|
|
|
|
import {XHR} from 'angular2/src/compiler/xhr';
|
2016-01-06 17:13:44 -05:00
|
|
|
import {
|
|
|
|
UrlResolver,
|
|
|
|
createUrlResolverWithoutPackagePrefix
|
|
|
|
} from 'angular2/src/compiler/url_resolver';
|
2015-09-14 18:59:09 -04:00
|
|
|
|
2015-10-12 13:23:51 -04:00
|
|
|
export var TEST_PROVIDERS = [
|
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
|
|
|
];
|