Skip to content

Commit

Permalink
fix(Movable.jsx): tests
Browse files Browse the repository at this point in the history
  • Loading branch information
UDIA committed May 5, 2020
1 parent 4770e49 commit 50d7661
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Movable/Movable.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ describe('<Movable/>', () => {
const stopPropagation = sinon.spy();
const preventDefault = sinon.spy();
const wrapper = mount(<Movable onBeginMove={handleOnBeginMove}/>);

document.addEventListener.reset();
wrapper.simulate('mousedown', {stopPropagation, preventDefault});
expect(handleOnBeginMove.calledOnce).to.eql(true);
Expand Down

0 comments on commit 50d7661

Please sign in to comment.