Skip to content

Commit

Permalink
Fix typo: UNKNON=>UNKNOWN
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Nov 13, 2023
1 parent a0a110a commit b8aa082
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ describe('Notification Middleware', () => {
},
};

const UNKNON_400_ERROR = {
const UNKNOWN_400_ERROR = {
type: ERROR_TYPE,
error: {
isAxiosError: true,
Expand All @@ -163,7 +163,7 @@ describe('Notification Middleware', () => {
},
};

const UNKNON_ERROR = {
const UNKNOWN_ERROR = {
type: ERROR_TYPE,
error: {
isAxiosError: true,
Expand Down Expand Up @@ -256,13 +256,13 @@ describe('Notification Middleware', () => {
});

it('should trigger an error toast message and return error for unknown 400 error', () => {
expect(store.dispatch(UNKNON_400_ERROR).error.response.status).toEqual(400);
expect(store.dispatch(UNKNOWN_400_ERROR).error.response.status).toEqual(400);
const toastMsg = (toastify.toast as any).error.getCall(0).args[0];
expect(toastMsg).toContain('Unknown error!');
});

it('should trigger an error toast message and return error for unknown error', () => {
expect(store.dispatch(UNKNON_ERROR).error.isAxiosError).toEqual(true);
expect(store.dispatch(UNKNOWN_ERROR).error.isAxiosError).toEqual(true);
const toastMsg = (toastify.toast as any).error.getCall(0).args[0];
expect(toastMsg).toContain('Unknown error!');
});
Expand Down

0 comments on commit b8aa082

Please sign in to comment.