diff --git a/aio/content/examples/service-worker-getting-started/e2e/src/app.e2e-spec.ts b/aio/content/examples/service-worker-getting-started/e2e/src/app.e2e-spec.ts index 6d77937689..c221f0ebb6 100755 --- a/aio/content/examples/service-worker-getting-started/e2e/src/app.e2e-spec.ts +++ b/aio/content/examples/service-worker-getting-started/e2e/src/app.e2e-spec.ts @@ -34,8 +34,9 @@ describe('sw-example App', () => { expect(items[3].getText()).toBe('Angular blog'); }); }); - // Check for a rejected promise as the service worker is not enabled - it('SwUpdate.checkForUpdate() should return a rejected promise', () => { + + // Check for a rejected promise as the service worker is not enabled + it('SwUpdate.checkForUpdate() should return a rejected promise', () => { const button = element(by.css('button')); const rejectMessage = element(by.css('p')); button.click(); diff --git a/aio/content/examples/service-worker-getting-started/src/app/app.component.ts b/aio/content/examples/service-worker-getting-started/src/app/app.component.ts index 67cc894396..a2aa3028c5 100755 --- a/aio/content/examples/service-worker-getting-started/src/app/app.component.ts +++ b/aio/content/examples/service-worker-getting-started/src/app/app.component.ts @@ -12,9 +12,9 @@ export class AppComponent { constructor(private update: SwUpdate) {} updateCheck(): void { - this.update + this.update .checkForUpdate() .then(() => this.updateCheckText = 'resolved') .catch(err => this.updateCheckText = `rejected: ${err.message}`); - } + } }