MCPcopy
hub / github.com/angular/angular / setupSw

Method setupSw

packages/service-worker/testing/mock.ts:59–63  ·  view source on GitHub ↗
(url: string = '/ngsw-worker.js')

Source from the content-addressed store, hash-verified

57 }
58
59 setupSw(url: string = '/ngsw-worker.js'): void {
60 this.mockRegistration = new MockServiceWorkerRegistration();
61 this.controller = new MockServiceWorker(this, url);
62 this.onControllerChange.forEach((onChange) => onChange(this.controller));
63 }
64
65 sendMessage(value: Object): void {
66 this.onMessage.forEach((onMessage) =>

Callers 2

comm_spec.tsFile · 0.80

Calls 2

onChangeFunction · 0.85
forEachMethod · 0.45

Tested by

no test coverage detected