feat(mocks): Mark mock objects @Injectable()
Make mock objects `@Injectable()` to allow using them in compiled tests. Closes #5576
This commit is contained in:
committed by
Jeremy Elbourn
parent
e9f873a365
commit
35e32bbea1
@@ -1,3 +1,4 @@
|
||||
import {Injectable} from 'angular2/src/core/di';
|
||||
import {
|
||||
AsyncTestCompleter,
|
||||
inject,
|
||||
@@ -21,6 +22,7 @@ function microTask(fn: Function): void {
|
||||
PromiseWrapper.resolve(null).then((_) => { fn(); });
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
class MockNgZone extends NgZone {
|
||||
_onTurnStartStream: EventEmitter<any>;
|
||||
get onTurnStart() { return this._onTurnStartStream; }
|
||||
|
||||
Reference in New Issue
Block a user