Files
angular-docs-cn/modules/angular2/test/compiler/test_bindings.ts
T

13 lines
616 B
TypeScript
Raw Normal View History

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