Skip to content

Commit

Permalink
fix(ng-dev): fix compilation error in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ersimont committed Jul 13, 2021
1 parent 7e5087f commit 2ff1d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ng-dev/src/lib/angular-context/angular-context.ts
Expand Up @@ -154,7 +154,7 @@ export class AngularContext {
* @param unit The unit of time `amount` represents. Accepts anything described in `@s-libs/s-core`'s [TimeUnit]{@linkcode https://simontonsoftware.github.io/s-js-utils/typedoc/enums/timeunit.html} enum.
*/
tick(amount = 0, unit = 'ms'): void {
if (!Zone.current.get('FakeAsyncTestZoneSpec')) {
if (!(window as any).Zone.current.get('FakeAsyncTestZoneSpec')) {
throw new Error(
'.tick() only works inside the .run() callback (because it needs to be in a fakeAsync zone)',
);
Expand Down

0 comments on commit 2ff1d2c

Please sign in to comment.