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