chore(core): move compiler out of core
BREAKING CHANGE All imports from 'angular2/core/compiler' should be changed to 'angular2/compiler'.
This commit is contained in:
12
modules/angular2/test/compiler/test_bindings.ts
Normal file
12
modules/angular2/test/compiler/test_bindings.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import {provide, Provider} from 'angular2/src/core/di';
|
||||
import {MockSchemaRegistry} from './schema_registry_mock';
|
||||
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';
|
||||
|
||||
export var TEST_PROVIDERS = [
|
||||
provide(ElementSchemaRegistry, {useValue: new MockSchemaRegistry({}, {})}),
|
||||
provide(XHR, {useClass: MockXHR}),
|
||||
provide(UrlResolver, {useFactory: createWithoutPackagePrefix})
|
||||
];
|
Reference in New Issue
Block a user