Skip to content

Commit

Permalink
remove unnecessary sleep from test
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-tavares committed Apr 20, 2020
1 parent d863ed7 commit 7c2572e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe('LinkToApp component', () => {
const clickEventArg = spyOnClickHandler.mock.calls[0][0];
expect(clickEventArg.isDefaultPrevented()).toBe(true);
});
it('should not navigate if onClick callback prevents defalut', () => {
it('should not navigate if onClick callback prevents default', () => {
const spyOnClickHandler: LinkToAppOnClickMock = jest.fn(ev => {
ev.preventDefault();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ describe('Policy Details', () => {
);
expect(history.location.pathname).toEqual('/policy/1');
backToListButton.simulate('click', { button: 0 });
await sleep();
expect(history.location.pathname).toEqual('/policy');
});
it('should display agent stats', async () => {
Expand Down

0 comments on commit 7c2572e

Please sign in to comment.