Skip to content

Commit f56ab26

Browse files
committed
test: update test case.
1 parent ce4461a commit f56ab26

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/run.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,11 @@ describe('\n Hotkeys.js Test Case222.\n', () => {
215215

216216
expect(hotkeys.unbind()).toBe(undefined);
217217
expect(hotkeys.unbind('enter')).toBe(undefined);
218-
expect(hotkeys.unbind('enter12')).toBe(undefined);
218+
expect(hotkeys.unbind('enter12')).toBeUndefined();
219+
});
220+
221+
test('getAllKeyCodes Test Case', async () => {
222+
expect(hotkeys.getAllKeyCodes()).toEqual([]);
219223
});
220224

221225
test('passing an empty string to unbind does not remove all handlers', () => {

0 commit comments

Comments
 (0)