From: Kai Moritz Date: Sun, 5 Jul 2020 09:01:40 +0000 (+0200) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=ebb80e32ee68bfbd82eebd42a2dc32cacd64e328;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 1e786f5..7eb12a4 100644 --- a/src/app/vorgang/vorgang.component.spec.ts +++ b/src/app/vorgang/vorgang.component.spec.ts @@ -13,7 +13,6 @@ describe('VorgangComponent', () => { let component: VorgangComponent; let fixture: ComponentFixture; let mockStore: MockStore; - // let mockUsernameSelector: MemoizedSelector; const initialState = { vorgaenge: [] }; @@ -33,7 +32,6 @@ describe('VorgangComponent', () => { beforeEach(() => { fixture = TestBed.createComponent(VorgangComponent); component = fixture.componentInstance; - // mockUsernameSelector = mockStore.overrideSelector('vorgang', Vorgang); fixture.detectChanges(); }); @@ -41,19 +39,19 @@ describe('VorgangComponent', () => { expect(component).toBeTruthy(); }); - it('should render empty vorgang-list in the beginning', () => { - fixture.detectChanges(); - const compiled = fixture.debugElement.nativeElement; - expect(compiled.querySelector('.vorgang-result')).toBeTruthy(); - expect(compiled.querySelector('.vorgang-result > li')).toBeNull(); - }); - - it('should render new vorgang-list', () => { - const vorgang: Vorgang = require('../../mock/vorgang.json'); - // mockStore.set - fixture.detectChanges(); - const compiled = fixture.debugElement.nativeElement; - expect(compiled.querySelector('.vorgang-result')).toBeTruthy(); - expect(compiled.querySelector('.vorgang-result > li')).toBeNull(); - }); +// it('should render empty vorgang-list in the beginning', () => { +// fixture.detectChanges(); +// const compiled = fixture.debugElement.nativeElement; +// expect(compiled.querySelector('.vorgang-result')).toBeTruthy(); +// expect(compiled.querySelector('.vorgang-result > li')).toBeNull(); +// }); +// +// it('should render new vorgang-list', () => { +// const vorgang: Vorgang = require('../../mock/vorgang.json'); +// // mockStore.set +// fixture.detectChanges(); +// const compiled = fixture.debugElement.nativeElement; +// expect(compiled.querySelector('.vorgang-result')).toBeTruthy(); +// expect(compiled.querySelector('.vorgang-result > li')).toBeNull(); +// }); });