Test deactivation of SelectionTool

This commit is contained in:
ziajka 2018-03-14 14:21:05 +01:00
parent 7f03d2f372
commit 1867a77b2b

View File

@ -71,4 +71,15 @@ describe('SelectionTool', () => {
});
});
describe('SelectionTool can be deactivated', () => {
beforeEach(() => {
tool.deactivate();
svg.node().dispatchEvent(new MouseEvent('mousedown', {clientX: 100, clientY: 100}));
});
it('path should be still hiden', () => {
expect(path_selection.attr('visibility')).toEqual('hidden');
});
});
});