Skip to content

Commit

Permalink
Updates tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matdru committed Jun 21, 2020
1 parent a98d822 commit 42a3752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/events/tests/EventHandlers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ describe('EventHandlers', () => {
});
it('should contain one event with click', () => {
expect(select.events).toHaveLength(1);
expect(getHandler(select.events, 'click')).toBeDefined();
expect(getHandler(select.events, 'mousedown')).toBeDefined();
});
it('should call setNodeEvent on mousedown', () => {
callHandler(select.events, 'click')(e, nodeId);
callHandler(select.events, 'mousedown')(e, nodeId);
expect(actions.setNodeEvent).toHaveBeenCalledWith('selected', nodeId);
});
});
Expand Down

0 comments on commit 42a3752

Please sign in to comment.