Migrated server list actions to use payload prop

This commit is contained in:
Alejandro Celaya
2022-11-05 09:24:12 +01:00
parent 62ab86aefa
commit 90ef41b419
3 changed files with 55 additions and 43 deletions

View File

@@ -87,7 +87,7 @@ describe('remoteServersReducer', () => {
await fetchServers(axios)()(dispatch);
expect(dispatch).toHaveBeenCalledWith({ type: CREATE_SERVERS, newServers: expectedNewServers });
expect(dispatch).toHaveBeenCalledWith({ type: CREATE_SERVERS, payload: expectedNewServers });
expect(get).toHaveBeenCalledTimes(1);
});
});