test(VmTurnZone): provide a stub VmTurnZone for CJS tests

This commit is contained in:
Victor Berchet 2015-03-31 19:04:25 +02:00
parent d8aeb40b49
commit 94a48e8640
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
// TODO(vicb): implement this class properly
// The current stub implementation is only here to please cjs tests
export class VmTurnZone {
constructor({enableLongStackTrace}) {
}
initCallbacks({onTurnStart, onTurnDone, onScheduleMicrotask, onErrorHandler} = {}) {
}
run(fn) {
return fn();
}
runOutsideAngular(fn) {
return fn();
}
}