Skip to content

Commit 26970cd

Browse files
committed
test(unde/redo): update test
1 parent 4744898 commit 26970cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

draft-js-undo-plugin/src/RedoButton/__test__/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('RedoButton', () => {
9797
children="redo"
9898
/>
9999
);
100-
result.find('button').simulate('click');
100+
result.find('button').simulate('click', { stopPropagation: ()=> undefined });
101101
expect(onChange).to.have.been.calledOnce;
102102
});
103103
});

draft-js-undo-plugin/src/UndoButton/__test__/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe('UndoButton', () => {
9696
children="redo"
9797
/>
9898
);
99-
result.find('button').simulate('click');
99+
result.find('button').simulate('click', { stopPropagation: ()=> undefined });
100100
expect(onChange).to.have.been.calledOnce;
101101
});
102102
});

0 commit comments

Comments
 (0)