mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-11 11:41:35 +00:00
unit tests added
This commit is contained in:
parent
6dbce19481
commit
6defbdb9df
@ -270,4 +270,14 @@ describe('ProjectMapComponent', () => {
|
|||||||
|
|
||||||
expect(mapSettingService.changeMapLockValue).toHaveBeenCalled();
|
expect(mapSettingService.changeMapLockValue).toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should call map settings service with proper value', () => {
|
||||||
|
spyOn(mapSettingService, 'changeMapLockValue');
|
||||||
|
|
||||||
|
component.changeLockValue();
|
||||||
|
expect(mapSettingService.changeMapLockValue).toHaveBeenCalledWith(true);
|
||||||
|
|
||||||
|
component.changeLockValue();
|
||||||
|
expect(mapSettingService.changeMapLockValue).toHaveBeenCalledWith(false);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user