@@ -1,5 +1,5 @@
|
||||
import {SpyObject} from 'angular2/test_lib';
|
||||
import {LifeCycle, Injector, bind} from 'angular2/angular2';
|
||||
import {LifeCycle, Injector, provide} from 'angular2/angular2';
|
||||
import {ComponentRef} from 'angular2/src/core/linker/dynamic_component_loader';
|
||||
import {global} from 'angular2/src/core/facade/lang';
|
||||
|
||||
@@ -7,7 +7,7 @@ export class SpyComponentRef extends SpyObject {
|
||||
injector;
|
||||
constructor() {
|
||||
super();
|
||||
this.injector = Injector.resolveAndCreate([bind(LifeCycle).toValue({tick: () => {}})]);
|
||||
this.injector = Injector.resolveAndCreate([provide(LifeCycle, {asValue: {tick: () => {}}})]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user