Skip to content

Commit

Permalink
removed not.toHaveBeenCalled()
Browse files Browse the repository at this point in the history
removed uanessacry check for not.toHaveBeenCalled();

Co-authored-by: CMDWillYang <williamyang721@gmail.com>
Signed-off-by: Vijay Vavdiya <vijayvavdiya@gmail.com>
  • Loading branch information
vvavdiya and CMDWillYang authored Oct 25, 2023
1 parent 0bc2666 commit 6b75011
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/core/public/chrome/ui/header/header_logo.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ describe('Header logo', () => {
component.find('.logoContainer img').simulate('click');

// Expect that navigateToApp is not called when reload is true
expect(props.navigateToApp).not.toHaveBeenCalled();
// Expect that window.location.reload is called exactly once
expect(props.navigateToApp).toHaveBeenCalledTimes(1);
});
Expand Down

0 comments on commit 6b75011

Please sign in to comment.