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