mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-18 21:43:49 +00:00
Refactor of redux tests to avoid covering RTK implementation details
This commit is contained in:
@@ -9,10 +9,8 @@ describe('visitCreationReducer', () => {
|
||||
const visit = Mock.all<Visit>();
|
||||
|
||||
it('just returns the action with proper type', () => {
|
||||
expect(createNewVisits([{ shortUrl, visit }])).toEqual({
|
||||
type: createNewVisits.toString(),
|
||||
payload: { createdVisits: [{ shortUrl, visit }] },
|
||||
});
|
||||
const { payload } = createNewVisits([{ shortUrl, visit }]);
|
||||
expect(payload).toEqual({ createdVisits: [{ shortUrl, visit }] });
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user