Skip to content

Commit 742e9f5

Browse files
Robin Métraldiasbruno
Robin Métral
authored andcommitted
[fixed] Revert changes to test helpers
1 parent 28ea6b5 commit 742e9f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: specs/helper.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ const dispatchMockEvent = eventCtor => (key, code) => (element, opts) =>
182182
{},
183183
{
184184
key: key,
185-
code: code,
185+
keyCode: code,
186186
which: code
187187
},
188188
opts
@@ -194,11 +194,11 @@ const dispatchMockKeyDownEvent = dispatchMockEvent(Simulate.keyDown);
194194
/**
195195
* Dispatch an 'esc' key down event from an element.
196196
*/
197-
export const escKeyDown = dispatchMockKeyDownEvent("ESC", "Escape");
197+
export const escKeyDown = dispatchMockKeyDownEvent("ESC", 27);
198198
/**
199199
* Dispatch a 'tab' key down event from an element.
200200
*/
201-
export const tabKeyDown = dispatchMockKeyDownEvent("TAB", "Tab");
201+
export const tabKeyDown = dispatchMockKeyDownEvent("TAB", 9);
202202
/**
203203
* Dispatch a 'click' event at a node.
204204
*/

0 commit comments

Comments
 (0)