Skip to content

Commit

Permalink
Fixed tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
efreeti committed Jul 29, 2020
1 parent 8f48a45 commit 6fe94f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ describe('Policy Details', () => {
expect(toastAddMock.calls).toHaveLength(1);
expect(toastAddMock.calls[0][0]).toMatchObject({
title: 'Success!',
text: expect.any(Object),
text: expect.any(Function),
});
});
it('should show an error notification toast if update fails', async () => {
Expand All @@ -274,7 +274,7 @@ describe('Policy Details', () => {
expect(toastAddMock.calls).toHaveLength(1);
expect(toastAddMock.calls[0][0]).toMatchObject({
title: 'Failed!',
text: expect.any(Object),
text: expect.any(String),
});
});
});
Expand Down

0 comments on commit 6fe94f6

Please sign in to comment.