(url: string = '/ngsw-worker.js')
| 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) => |
no test coverage detected