Skip to content

Commit c45f6a4

Browse files
updatesd
1 parent 8ed110e commit c45f6a4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/actions/__tests__/userManagement.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ describe('User Management Actions', () => {
205205
{ id: 1, name: 'John Doe', email: 'john@example.com' },
206206
{ id: 2, name: 'Jane Smith', email: 'jane@example.com' }
207207
];
208-
const mockSource = '';
208+
const mockSource = 'Report';
209209

210210
axios.get.mockResolvedValueOnce({ data: mockBasicInfo });
211211

@@ -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({source: 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(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)