Skip to content

Commit

Permalink
[fixed] Revert changes to test helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Métral authored and diasbruno committed Oct 14, 2022
1 parent 28ea6b5 commit 742e9f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions specs/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const dispatchMockEvent = eventCtor => (key, code) => (element, opts) =>
{},
{
key: key,
code: code,
keyCode: code,
which: code
},
opts
Expand All @@ -194,11 +194,11 @@ const dispatchMockKeyDownEvent = dispatchMockEvent(Simulate.keyDown);
/**
* Dispatch an 'esc' key down event from an element.
*/
export const escKeyDown = dispatchMockKeyDownEvent("ESC", "Escape");
export const escKeyDown = dispatchMockKeyDownEvent("ESC", 27);
/**
* Dispatch a 'tab' key down event from an element.
*/
export const tabKeyDown = dispatchMockKeyDownEvent("TAB", "Tab");
export const tabKeyDown = dispatchMockKeyDownEvent("TAB", 9);
/**
* Dispatch a 'click' event at a node.
*/
Expand Down

0 comments on commit 742e9f5

Please sign in to comment.