Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iansan5653 authored Oct 27, 2023
1 parent bd496f5 commit 905ee36
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,12 @@ describe('hotkey', function () {
['Control+Shift', {ctrlKey: true, shiftKey: true, key: 'Control'}],
['Alt+s', {altKey: true, key: 's'}],
['Alt+s', {altKey: true, key: 'ß'}, 'mac'],
['Alt+Shift+S', {altKey: true, key: 'S'}],
['Alt+Shift+S', {altKey: true, key: 'Í'}, 'mac'],
['Alt+Shift+S', {altKey: true, shiftKey: true, key: 'S'}],
['Alt+Shift+S', {altKey: true, shiftKey: true, key: 'Í'}, 'mac'],
['Alt+ArrowLeft', {altKey: true, key: 'ArrowLeft'}],
['Alt+ArrowLeft', {altKey: true, key: 'ArrowLeft'}, 'mac']
['Alt+ArrowLeft', {altKey: true, key: 'ArrowLeft'}, 'mac'],
['Alt+Shift+ArrowLeft', {altKey: true, shiftKey: true, key: 'ArrowLeft'}],
['Alt+Shift+ArrowLeft', {altKey: true, shiftKey: true, key: 'ArrowLeft'}, 'mac']
]
for (const [expected, keyEvent, platform = 'win / linux'] of tests) {
it(`${JSON.stringify(keyEvent)} => ${expected}`, function (done) {
Expand Down

0 comments on commit 905ee36

Please sign in to comment.