2015-10-11 05:11:13 +00:00
|
|
|
import {provide, Provider} from 'angular2/src/core/di';
|
2015-09-14 22:59:09 +00:00
|
|
|
import {MockSchemaRegistry} from './schema_registry_mock';
|
2015-11-05 22:07:57 +00: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';
|
|
|
|
|
import {UrlResolver, createWithoutPackagePrefix} from 'angular2/src/compiler/url_resolver';
|
2015-09-14 22:59:09 +00:00
|
|
|
|
2015-10-12 17:23:51 +00:00
|
|
|
export var TEST_PROVIDERS = [
|
2015-10-12 18:30:34 +00:00
|
|
|
provide(ElementSchemaRegistry, {useValue: new MockSchemaRegistry({}, {})}),
|
2015-10-15 23:03:23 +00:00
|
|
|
provide(XHR, {useClass: MockXHR}),
|
|
|
|
|
provide(UrlResolver, {useFactory: createWithoutPackagePrefix})
|
2015-10-12 17:23:51 +00:00
|
|
|
];
|