Skip to content

Commit ff4a9a3

Browse files
committed
Add explicit provideZoneChangeDetection to providers
for operator webui's test.ts
1 parent 172badc commit ff4a9a3

File tree

1 file changed

+5
-1
lines changed
  • frontend/src/operator/webui/src

1 file changed

+5
-1
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
22

33
import 'zone.js/testing';
4+
import {provideZoneChangeDetection, NgModule} from '@angular/core';
45
import {getTestBed} from '@angular/core/testing';
56
import {
67
BrowserDynamicTestingModule,
78
platformBrowserDynamicTesting,
89
} from '@angular/platform-browser-dynamic/testing';
910

11+
@NgModule({ providers: [ provideZoneChangeDetection() ] })
12+
export class ZoneChangeDetectionModule {}
13+
1014
// First, initialize the Angular testing environment.
1115
getTestBed().initTestEnvironment(
12-
BrowserDynamicTestingModule,
16+
[ZoneChangeDetectionModule, BrowserDynamicTestingModule],
1317
platformBrowserDynamicTesting()
1418
);

0 commit comments

Comments
 (0)