Skip to content

Commit 9bbb838

Browse files
committed
whitespace
1 parent 802a764 commit 9bbb838

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

+13-13
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ describe('keydownControl', () => {
3131

3232
const pressKey = (keyCode, options = {}) => {
3333
const event = new KeyboardEvent('keydown', {
34-
keyCode,
35-
...options
34+
keyCode,
35+
...options
3636
});
3737

3838
// Allow setting target after event creation
3939
if (options.target) {
40-
Object.defineProperty(event, 'target', {
41-
value: options.target,
42-
enumerable: true
43-
});
40+
Object.defineProperty(event, 'target', {
41+
value: options.target,
42+
enumerable: true
43+
});
4444
}
4545

4646
if (options.testPreventDefault) {
47-
event.preventDefault = jest.fn();
47+
event.preventDefault = jest.fn();
4848
}
4949

5050
keydownControl.handleKeyDown(event);
@@ -56,7 +56,7 @@ describe('keydownControl', () => {
5656
expect(mockDispatch).toHaveBeenCalledWith(expectedAction);
5757

5858
if (options.testPreventDefault) {
59-
expect(event.preventDefault).toHaveBeenCalled();
59+
expect(event.preventDefault).toHaveBeenCalled();
6060
}
6161
};
6262

@@ -67,11 +67,11 @@ describe('keydownControl', () => {
6767

6868
describe('basic keyboard shortcuts', () => {
6969
it('should handle space key for play/pause when no menu is open', () => {
70-
expectDispatch(
71-
KeyCode.KEY_SPACE,
72-
{ type: 'watch/onPlayPauseClick' },
73-
{ testPreventDefault: true }
74-
);
70+
expectDispatch(
71+
KeyCode.KEY_SPACE,
72+
{ type: 'watch/onPlayPauseClick' },
73+
{ testPreventDefault: true }
74+
);
7575
});
7676

7777
it('should not trigger play/pause when menu is open', () => {

0 commit comments

Comments
 (0)