Skip to content

Commit

Permalink
test: add called times
Browse files Browse the repository at this point in the history
  • Loading branch information
linxianxi committed Aug 1, 2023
1 parent bf33250 commit 4d28332
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/preview.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,7 @@ describe('Preview', () => {
fireEvent.keyDown(window, { key: 'Escape', keyCode: 27 });

expect(onVisibleChange).toBeCalledWith(false, true);
expect(onVisibleChange).toBeCalledTimes(2);

onVisibleChange.mockRestore();
});
Expand Down

0 comments on commit 4d28332

Please sign in to comment.