Skip to content

Commit 00f7be5

Browse files
committed
test: remove redundant assertions for onKeyDown in ListBox tests
1 parent 330d9a3 commit 00f7be5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/react-aria-components/test/ListBox.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,11 +1870,9 @@ describe('ListBox', () => {
18701870

18711871
fireEvent.keyDown(options[0], {key: 'Delete'});
18721872
expect(onKeyDown).toHaveBeenCalledTimes(1);
1873-
expect(onKeyDown.mock.calls[0][0]).toHaveProperty('key', 'Delete');
18741873

18751874
fireEvent.keyDown(options[1], {key: 'Backspace'});
18761875
expect(onKeyDown).toHaveBeenCalledTimes(2);
1877-
expect(onKeyDown.mock.calls[1][0]).toHaveProperty('key', 'Backspace');
18781876
});
18791877
});
18801878
});

0 commit comments

Comments
 (0)