From 42dc2c19ee460b74b031f60f444fd3cc0782f3b6 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Fri, 5 May 2017 09:26:55 +0100 Subject: [PATCH] refactor(aio): remove redundant test The search worker is now initialised from the `SearchBoxComponent`, which has its own tests for this. Closes #15593 --- aio/src/app/app.component.spec.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/aio/src/app/app.component.spec.ts b/aio/src/app/app.component.spec.ts index 422c3ccb42..9737c7e5ef 100644 --- a/aio/src/app/app.component.spec.ts +++ b/aio/src/app/app.component.spec.ts @@ -355,14 +355,6 @@ describe('AppComponent', () => { }); }); - describe('search worker', () => { - it('should initialize the search worker', inject([SearchService], (searchService: SearchService) => { - fixture.detectChanges(); // triggers ngOnInit - expect(searchService.initWorker).toHaveBeenCalled(); - expect(searchService.loadIndex).toHaveBeenCalled(); - })); - }); - describe('initial rendering', () => { beforeEach(async(() => { createTestingModule('a/b');