Skip to content

Commit

Permalink
fix(deps): fix test case [frontend]
Browse files Browse the repository at this point in the history
  • Loading branch information
guzhongren committed Mar 22, 2024
1 parent 68f16eb commit 2d1f792
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/__tests__/context/notificationSlice.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('notification reducer', () => {
{ id: '2', title: 'Notification', message: 'Notification Message 2' },
],
},
closeAllNotifications,
closeAllNotifications(),
);

expect(stepper.notifications).toEqual([]);
Expand Down
2 changes: 1 addition & 1 deletion frontend/__tests__/context/stepperSlice.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('stepper reducer', () => {
});

it('should reset to 0 when handle reset', () => {
const stepper = stepperReducer(undefined, resetStep);
const stepper = stepperReducer(undefined, resetStep());

expect(stepper.stepNumber).toEqual(ZERO);
expect(stepper.timeStamp).toEqual(ZERO);
Expand Down
1 change: 0 additions & 1 deletion frontend/__tests__/utils/setupStoreUtil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ export const setupStore = () => {
[metaSlice.name]: metaSlice.reducer,
[notificationSlice.name]: notificationSlice.reducer,
},
middleware: [],
});
};

0 comments on commit 2d1f792

Please sign in to comment.