From eb99753e4a2261063a48fe418462f3c91ab88eee Mon Sep 17 00:00:00 2001 From: Andrew Kushnir Date: Tue, 27 Nov 2018 17:18:21 -0800 Subject: [PATCH] test(ivy): enable @angular/service-worker targets to run on CI (#27310) PR Close #27310 --- packages/service-worker/test/BUILD.bazel | 2 -- packages/service-worker/test/comm_spec.ts | 10 ++++---- .../service-worker/test/integration_spec.ts | 23 +++++++++---------- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/packages/service-worker/test/BUILD.bazel b/packages/service-worker/test/BUILD.bazel index 605260477b..c7593ec73b 100644 --- a/packages/service-worker/test/BUILD.bazel +++ b/packages/service-worker/test/BUILD.bazel @@ -20,7 +20,6 @@ ts_library( jasmine_node_test( name = "test", bootstrap = ["angular/tools/testing/init_node_spec.js"], - tags = ["fixme-ivy-aot"], deps = [ ":test_lib", "//tools/testing:node", @@ -29,7 +28,6 @@ jasmine_node_test( ts_web_test_suite( name = "test_web", - tags = ["fixme-ivy-aot"], deps = [ ":test_lib", ], diff --git a/packages/service-worker/test/comm_spec.ts b/packages/service-worker/test/comm_spec.ts index 1ce53dc359..714e9ba79d 100644 --- a/packages/service-worker/test/comm_spec.ts +++ b/packages/service-worker/test/comm_spec.ts @@ -8,12 +8,12 @@ import {PLATFORM_ID} from '@angular/core'; import {TestBed} from '@angular/core/testing'; +import {NgswCommChannel} from '@angular/service-worker/src/low_level'; +import {RegistrationOptions, ngswCommChannelFactory} from '@angular/service-worker/src/module'; +import {SwPush} from '@angular/service-worker/src/push'; +import {SwUpdate} from '@angular/service-worker/src/update'; +import {MockPushManager, MockPushSubscription, MockServiceWorkerContainer, MockServiceWorkerRegistration, patchDecodeBase64} from '@angular/service-worker/testing/mock'; -import {NgswCommChannel} from '../src/low_level'; -import {RegistrationOptions, ngswCommChannelFactory} from '../src/module'; -import {SwPush} from '../src/push'; -import {SwUpdate} from '../src/update'; -import {MockPushManager, MockPushSubscription, MockServiceWorkerContainer, MockServiceWorkerRegistration, patchDecodeBase64} from '../testing/mock'; import {async_fit, async_it} from './async'; { diff --git a/packages/service-worker/test/integration_spec.ts b/packages/service-worker/test/integration_spec.ts index c1268d1782..d56a791c52 100644 --- a/packages/service-worker/test/integration_spec.ts +++ b/packages/service-worker/test/integration_spec.ts @@ -6,20 +6,19 @@ * found in the LICENSE file at https://angular.io/license */ +import {NgswCommChannel} from '@angular/service-worker/src/low_level'; +import {SwPush} from '@angular/service-worker/src/push'; +import {SwUpdate} from '@angular/service-worker/src/update'; +import {MockServiceWorkerContainer, MockServiceWorkerRegistration} from '@angular/service-worker/testing/mock'; +import {CacheDatabase} from '@angular/service-worker/worker/src/db-cache'; +import {Driver} from '@angular/service-worker/worker/src/driver'; +import {Manifest} from '@angular/service-worker/worker/src/manifest'; +import {MockRequest} from '@angular/service-worker/worker/testing/fetch'; +import {MockFileSystemBuilder, MockServerStateBuilder, tmpHashTableForFs} from '@angular/service-worker/worker/testing/mock'; +import {SwTestHarness, SwTestHarnessBuilder} from '@angular/service-worker/worker/testing/scope'; import {Observable} from 'rxjs'; import {take} from 'rxjs/operators'; -import {NgswCommChannel} from '../src/low_level'; -import {SwPush} from '../src/push'; -import {SwUpdate} from '../src/update'; -import {MockServiceWorkerContainer, MockServiceWorkerRegistration} from '../testing/mock'; -import {CacheDatabase} from '../worker/src/db-cache'; -import {Driver} from '../worker/src/driver'; -import {Manifest} from '../worker/src/manifest'; -import {MockRequest} from '../worker/testing/fetch'; -import {MockFileSystemBuilder, MockServerStateBuilder, tmpHashTableForFs} from '../worker/testing/mock'; -import {SwTestHarness, SwTestHarnessBuilder} from '../worker/testing/scope'; - import {async_beforeEach, async_fit, async_it} from './async'; const dist = new MockFileSystemBuilder().addFile('/only.txt', 'this is only').build(); @@ -144,4 +143,4 @@ const serverUpdate = await gotNotificationClick; }); }); -})(); +})(); \ No newline at end of file