Skip to content

Commit

Permalink
Add undefined platform test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Cbodfield committed May 6, 2024
1 parent 5e47c1d commit 45dbff3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test-normalize-hotkey.js
Expand Up @@ -25,6 +25,8 @@ describe('normalizeHotkey', () => {
['Mod+)', 'Meta+)', 'mac'], // TODO: on a mac upper-case keys are lowercased when Meta is pressed
['Mod+Alt+a', 'Control+Alt+a', 'win / linux'],
['Mod+Alt+a', 'Alt+Meta+a', 'mac'],
// undefined platform doesn't localize and falls back to windows (SSR)
["Mod+a", "Control+a", undefined],
// Modifier sorting
['Shift+Alt+Meta+Control+m', 'Control+Alt+Meta+Shift+m'],
['Shift+Alt+Mod+m', 'Control+Alt+Shift+m', 'win']
Expand Down

0 comments on commit 45dbff3

Please sign in to comment.