let component: VorgangComponent;
let fixture: ComponentFixture<VorgangComponent>;
let mockStore: MockStore;
- // let mockUsernameSelector: MemoizedSelector<any, Vorgang>;
const initialState = { vorgaenge: [] };
beforeEach(() => {
fixture = TestBed.createComponent(VorgangComponent);
component = fixture.componentInstance;
- // mockUsernameSelector = mockStore.overrideSelector('vorgang', Vorgang);
fixture.detectChanges();
});
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();
+// });
});