Skip to content

Commit

Permalink
Fix test import
Browse files Browse the repository at this point in the history
  • Loading branch information
iansan5653 authored Oct 9, 2023
1 parent b293e46 commit bb4bd70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {install, uninstall, eventToHotkeyString} from '../dist/index.js'
import {install, uninstall, eventToHotkey} from '../dist/index.js'

let elementsActivated = []
function clickHandler(event) {
Expand Down Expand Up @@ -282,7 +282,7 @@ describe('hotkey', function () {
it(`${JSON.stringify(keyEvent)} => ${expected}`, function (done) {
document.body.addEventListener('keydown', function handler(event) {
document.body.removeEventListener('keydown', handler)
assert.equal(eventToHotkeyString(event), expected)
assert.equal(eventToHotkey(event), expected)
done()
})
document.body.dispatchEvent(new KeyboardEvent('keydown', keyEvent))
Expand Down

0 comments on commit bb4bd70

Please sign in to comment.