mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
BREAKING CHANGE: VmTurnZone has been renamed to NgZone. - The public API has not chnanged, - The "outer" zone is now named "mount" zone (private to NgZone).
15 lines
245 B
JavaScript
15 lines
245 B
JavaScript
import {NgZone} from 'angular2/src/core/zone/ng_zone';
|
|
|
|
export class MockNgZone extends NgZone {
|
|
constructor() {
|
|
super({enableLongStackTrace: false});
|
|
}
|
|
|
|
run(fn) {
|
|
return fn();
|
|
}
|
|
|
|
runOutsideAngular(fn) {
|
|
return fn();
|
|
}
|
|
}
|