Skip to content

Commit 6851277

Browse files
author
Todd Kloots
committed
Fix failing tests
1 parent e8de1b2 commit 6851277

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/assertions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ exports.props = {
7878
BUTTON_ROLE_ENTER: {
7979
msg: 'You have `role="button"` but did not define an `onKeyDown` handler. Add it, and have the "Enter" key do the same thing as an `onClick` handler.',
8080
test (tagName, props, children) {
81-
return !(props.role === 'button' && props.onKeyDown);
81+
return !(props.role === 'button' && !props.onKeyDown);
8282
}
8383
}
8484

0 commit comments

Comments
 (0)