Skip to content

Commit d53625b

Browse files
committed
include alt in the same loop
1 parent 93d8df3 commit d53625b

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/screens/Watch/Utils/keydown.control.test.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,9 @@ describe('keydownControl', () => {
411411
});
412412
});
413413

414-
describe('ctrl/cmd key combinations', () => {
414+
describe('ctrl/cmd/alt key combinations', () => {
415415
// Test both ctrl and cmd key combinations
416-
[withCtrl, withCmd].forEach(modifier => {
416+
[withCtrl, withCmd, withAlt].forEach(modifier => {
417417
const modifierName = Object.keys(modifier)[0].replace('Key', '');
418418

419419
it(`should handle ${modifierName} key combinations`, () => {
@@ -423,12 +423,4 @@ describe('keydownControl', () => {
423423
});
424424
});
425425
});
426-
427-
describe('alt key combinations', () => {
428-
it('should handle alt key combinations', () => {
429-
pressKey(KeyCode.KEY_A, withAlt);
430-
// Most alt combinations should be ignored (return early)
431-
expect(mockDispatch).not.toHaveBeenCalled();
432-
});
433-
});
434426
});

0 commit comments

Comments
 (0)