unit tests added

This commit is contained in:
Piotr Pekala 2019-06-25 01:51:26 -07:00
parent 6dbce19481
commit 6defbdb9df

View File

@ -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);
});
});