Skip to content

Commit 8ed110e

Browse files
updated test
1 parent 7b3c4ce commit 8ed110e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/actions/__tests__/userManagement.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ describe('User Management Actions', () => {
216216

217217
await store.dispatch(actions.getUserProfileBasicInfo({source: mockSource }));
218218
expect(store.getActions()).toEqual(expectedActions);
219-
expect(axios.get).toHaveBeenCalledWith(ENDPOINTS.USER_PROFILE_BASIC_INFO({source: mockSource }));
219+
expect(axios.get).toHaveBeenCalledWith(ENDPOINTS.USER_PROFILE_BASIC_INFO( mockSource ));
220220
});
221221

222222
it('should handle errors when fetching basic info', async () => {
@@ -227,7 +227,7 @@ describe('User Management Actions', () => {
227227
{ type: 'FETCH_USER_PROFILE_BASIC_INFO_ERROR' }
228228
];
229229

230-
await store.dispatch(actions.getUserProfileBasicInfo({source: mockSource }));
230+
await store.dispatch(actions.getUserProfileBasicInfo( mockSource));
231231
expect(store.getActions()).toEqual(expectedActions);
232232
});
233233
});

0 commit comments

Comments
 (0)