mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-09 12:02:53 +00:00
fix tests
This commit is contained in:
parent
0b0ebd01d5
commit
88ae3704dc
@ -34,18 +34,15 @@ describe('LocalServerComponent', () => {
|
|||||||
})
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
|
|
||||||
}));
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(LocalServerComponent);
|
fixture = TestBed.createComponent(LocalServerComponent);
|
||||||
component = fixture.componentInstance;
|
component = fixture.componentInstance;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
}));
|
||||||
|
|
||||||
it('should create and redirect to server', fakeAsync(() => {
|
it('should create and redirect to server', fakeAsync(() => {
|
||||||
expect(component).toBeTruthy();
|
expect(component).toBeTruthy();
|
||||||
expect(serverService.getLocalServer).toHaveBeenCalled();
|
expect(serverService.getLocalServer).toHaveBeenCalled();
|
||||||
// @FIXME: somehow shows it's never called
|
tick();
|
||||||
// expect(router.navigate).toHaveBeenCalledWith('/server', 99, 'projects');
|
expect(router.navigate).toHaveBeenCalledWith(['/server', 99, 'projects']);
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user