Skip to content

Commit fd1a01b

Browse files
author
Jess
committed
(chore) clean up comments
1 parent f3fcea4 commit fd1a01b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: test/specs/wrapper/trigger.spec.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ describeWithShallowAndMount('trigger', mountingMethod => {
4646

4747
const keyboardEvent = keydownHandler.getCall(0).args[0]
4848

49-
// Unfortunately, JSDom will give different types than PhantomJS for the keyCodes.
50-
// parseInt to normalize. I can't find a matcher here https://www.chaijs.com/api/bdd/
51-
// that relies on (`==`) instead of strict equals (`===`)
49+
// Unfortunately, JSDom will give different types than PhantomJS for keyCodes (string vs number), so we have to use parseInt to normalize the types.
5250
expect(parseInt(keyboardEvent.keyCode, 10)).to.equal(65)
5351
expect(parseInt(keyboardEvent.code, 10)).to.equal(65)
5452
})

0 commit comments

Comments
 (0)