refactor(test_injector): Provide separate methods for creating test injector with and without runtime compiler.
BREAKING CHANGE: `createTestInjector()` does not more include the runtime compiler. Use `createTestInjectorWithRuntimeCompiler()` instead. Closes #5583
This commit is contained in:
@@ -5,7 +5,7 @@ import {
|
||||
it,
|
||||
expect,
|
||||
beforeEach,
|
||||
createTestInjector,
|
||||
createTestInjectorWithRuntimeCompiler,
|
||||
beforeEachProviders,
|
||||
SpyObject,
|
||||
proxy
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
it,
|
||||
expect,
|
||||
beforeEach,
|
||||
createTestInjector,
|
||||
createTestInjectorWithRuntimeCompiler,
|
||||
beforeEachProviders,
|
||||
SpyObject,
|
||||
proxy
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
it,
|
||||
expect,
|
||||
beforeEach,
|
||||
createTestInjector,
|
||||
createTestInjectorWithRuntimeCompiler,
|
||||
beforeEachProviders,
|
||||
SpyObject,
|
||||
proxy
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
iit,
|
||||
expect,
|
||||
beforeEach,
|
||||
createTestInjector,
|
||||
createTestInjectorWithRuntimeCompiler,
|
||||
beforeEachProviders,
|
||||
TestComponentBuilder
|
||||
} from "angular2/testing_internal";
|
||||
@@ -101,7 +101,7 @@ export function main() {
|
||||
beforeEachProviders(() => {
|
||||
var uiRenderProtoViewStore = new RenderProtoViewRefStore(false);
|
||||
uiRenderViewStore = new RenderViewWithFragmentsStore(false);
|
||||
uiInjector = createTestInjector([
|
||||
uiInjector = createTestInjectorWithRuntimeCompiler([
|
||||
provide(RenderProtoViewRefStore, {useValue: uiRenderProtoViewStore}),
|
||||
provide(RenderViewWithFragmentsStore, {useValue: uiRenderViewStore}),
|
||||
provide(DomRenderer, {useClass: DomRenderer_}),
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
it,
|
||||
expect,
|
||||
beforeEach,
|
||||
createTestInjector,
|
||||
createTestInjectorWithRuntimeCompiler,
|
||||
beforeEachProviders
|
||||
} from 'angular2/testing_internal';
|
||||
import {SpyMessageBroker} from './spies';
|
||||
|
||||
Reference in New Issue
Block a user