Skip to content

Commit 16cf963

Browse files
INT-3396: enable zoneless in tests
1 parent 201d84a commit 16cf963

3 files changed

Lines changed: 5 additions & 10 deletions

File tree

tinymce-angular-component/src/test/ts/alien/InitTestEnvironment.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,11 @@ import 'zone.js/plugins/fake-async-test';
44

55
import { TestBed } from '@angular/core/testing';
66
import { BrowserTestingModule, platformBrowserTesting } from '@angular/platform-browser/testing';
7-
import { NgModule, provideZoneChangeDetection } from '@angular/core';
8-
9-
@NgModule({
10-
providers: [ provideZoneChangeDetection() ],
11-
})
12-
class AppTestingModule {}
137

148
TestBed.initTestEnvironment(
15-
[ BrowserTestingModule, AppTestingModule ], platformBrowserTesting(),
9+
[ BrowserTestingModule ],
10+
platformBrowserTesting(),
1611
{
17-
teardown: { destroyAfterEach: true },
12+
teardown: { destroyAfterEach: true }
1813
}
1914
);

tinymce-angular-component/src/test/ts/browser/EventBlacklistingTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Assertions } from '@ephox/agar';
1010
import { Fun } from '@ephox/katamari';
1111
import { throwTimeout } from '../alien/TestHelpers';
1212

13-
describe('EventBlacklistingTest', () => {
13+
describe.skip('EventBlacklistingTest', () => {
1414
const shouldRunInAngularZone = <T>(source: Observable<T>) =>
1515
source.pipe(
1616
tap(() => Assertions.assertEq('Subscribers to events should run within NgZone', true, NgZone.isInAngularZone()))

tinymce-angular-component/src/test/ts/browser/NgZoneTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { eachVersionContext, fixtureHook } from '../alien/TestHooks';
99
import { first } from 'rxjs';
1010
import { throwTimeout } from '../alien/TestHelpers';
1111

12-
describe('NgZoneTest', () => {
12+
describe.skip('NgZoneTest', () => {
1313
eachVersionContext([ '4', '5', '6', '7', '8' ], () => {
1414
const createFixture = fixtureHook(EditorComponent, { imports: [ EditorComponent ] });
1515

0 commit comments

Comments
 (0)