feat(mocks): Mark mock objects @Injectable()

Make mock objects `@Injectable()` to allow using them in compiled tests.

Closes #5576
This commit is contained in:
Tim Blasi
2015-12-03 09:06:42 -08:00
committed by Jeremy Elbourn
parent e9f873a365
commit 35e32bbea1
8 changed files with 17 additions and 1 deletions
@@ -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; }