From 45dbff36805469f9f0e78308b8d3db56346ffd9f Mon Sep 17 00:00:00 2001 From: Cody Bodfield Date: Mon, 6 May 2024 13:58:03 -0500 Subject: [PATCH] Add undefined platform test coverage --- test/test-normalize-hotkey.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-normalize-hotkey.js b/test/test-normalize-hotkey.js index 9900af3..5e35582 100644 --- a/test/test-normalize-hotkey.js +++ b/test/test-normalize-hotkey.js @@ -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']