Skip to content

Commit 94a48e8

Browse files
committed
test(VmTurnZone): provide a stub VmTurnZone for CJS tests
1 parent d8aeb40 commit 94a48e8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// TODO(vicb): implement this class properly
2+
// The current stub implementation is only here to please cjs tests
3+
export class VmTurnZone {
4+
constructor({enableLongStackTrace}) {
5+
}
6+
7+
initCallbacks({onTurnStart, onTurnDone, onScheduleMicrotask, onErrorHandler} = {}) {
8+
}
9+
10+
run(fn) {
11+
return fn();
12+
}
13+
14+
runOutsideAngular(fn) {
15+
return fn();
16+
}
17+
}

0 commit comments

Comments
 (0)