mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-17 04:53:49 +00:00
Referenced createNewVisits action directly, instead of its action type
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Mock } from 'ts-mockery';
|
||||
import { CREATE_VISITS, createNewVisits } from '../../../src/visits/reducers/visitCreation';
|
||||
import { createNewVisits } from '../../../src/visits/reducers/visitCreation';
|
||||
import { ShortUrl } from '../../../src/short-urls/data';
|
||||
import { Visit } from '../../../src/visits/types';
|
||||
|
||||
@@ -10,7 +10,7 @@ describe('visitCreationReducer', () => {
|
||||
|
||||
it('just returns the action with proper type', () => {
|
||||
expect(createNewVisits([{ shortUrl, visit }])).toEqual({
|
||||
type: CREATE_VISITS,
|
||||
type: createNewVisits.toString(),
|
||||
payload: { createdVisits: [{ shortUrl, visit }] },
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user