Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 742e9f5

Browse files
robinmetraldiasbruno
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

‎specs/helper.js

Lines changed: 3 additions & 3 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /