mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-10 11:59:53 +00:00
unit tests added
This commit is contained in:
parent
6dbce19481
commit
6defbdb9df
@ -270,4 +270,14 @@ describe('ProjectMapComponent', () => {
|
||||
|
||||
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