mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-16 20:43:48 +00:00
Migrated create visit action to use payload
This commit is contained in:
@@ -9,9 +9,10 @@ describe('visitCreationReducer', () => {
|
||||
const visit = Mock.all<Visit>();
|
||||
|
||||
it('just returns the action with proper type', () => {
|
||||
expect(createNewVisits([{ shortUrl, visit }])).toEqual(
|
||||
{ type: CREATE_VISITS, createdVisits: [{ shortUrl, visit }] },
|
||||
);
|
||||
expect(createNewVisits([{ shortUrl, visit }])).toEqual({
|
||||
type: CREATE_VISITS,
|
||||
payload: { createdVisits: [{ shortUrl, visit }] },
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user