Skip to content

Commit 7b3c4ce

Browse files
Error resolved in test
1 parent 348a710 commit 7b3c4ce

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/actions/__tests__/userManagement.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ describe('User Management Actions', () => {
214214
{ type: 'RECEIVE_USER_PROFILE_BASIC_INFO', payload: mockBasicInfo }
215215
];
216216

217-
await store.dispatch(actions.getUserProfileBasicInfo(mockSource));
217+
await store.dispatch(actions.getUserProfileBasicInfo({source: mockSource }));
218218
expect(store.getActions()).toEqual(expectedActions);
219-
expect(axios.get).toHaveBeenCalledWith(ENDPOINTS.USER_PROFILE_BASIC_INFO(mockSource));
219+
expect(axios.get).toHaveBeenCalledWith(ENDPOINTS.USER_PROFILE_BASIC_INFO({source: 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(mockSource));
230+
await store.dispatch(actions.getUserProfileBasicInfo({source: mockSource }));
231231
expect(store.getActions()).toEqual(expectedActions);
232232
});
233233
});

0 commit comments

Comments
 (0)