From: Kai Moritz Date: Mon, 29 Jun 2020 19:14:57 +0000 (+0200) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=e7360b34e22367c556c0b983e976df5f9ba4248f;p=examples%2Fangular-tour-of-heroes WIP --- diff --git a/src/app/vorgang/vorgang.component.spec.ts b/src/app/vorgang/vorgang.component.spec.ts index 9e912a8..1e786f5 100644 --- a/src/app/vorgang/vorgang.component.spec.ts +++ b/src/app/vorgang/vorgang.component.spec.ts @@ -13,11 +13,11 @@ describe('VorgangComponent', () => { let component: VorgangComponent; let fixture: ComponentFixture; let mockStore: MockStore; - let mockUsernameSelector: MemoizedSelector; + // let mockUsernameSelector: MemoizedSelector; - const initialState = { vorgang: { vorgaenge: [] } }; + const initialState = { vorgaenge: [] }; - beforeEach(async(() => { + beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ VorgangComponent ], providers: [ @@ -33,7 +33,7 @@ describe('VorgangComponent', () => { beforeEach(() => { fixture = TestBed.createComponent(VorgangComponent); component = fixture.componentInstance; - mockUsernameSelector = mockStore.overrideSelector('vorgang', Vorgang); + // mockUsernameSelector = mockStore.overrideSelector('vorgang', Vorgang); fixture.detectChanges(); }); @@ -50,7 +50,7 @@ describe('VorgangComponent', () => { it('should render new vorgang-list', () => { const vorgang: Vorgang = require('../../mock/vorgang.json'); - mockStore.set + // mockStore.set fixture.detectChanges(); const compiled = fixture.debugElement.nativeElement; expect(compiled.querySelector('.vorgang-result')).toBeTruthy();