shlink-web-client/test/visits/reducers/visitCreation.test.js

11 lines
371 B
JavaScript
Raw Normal View History

2020-05-10 20:02:58 +03:00
import { CREATE_VISIT, createNewVisit } from '../../../src/visits/reducers/visitCreation';
describe('visitCreationReducer', () => {
describe('createNewVisit', () => {
it('just returns the action with proper type', () =>
expect(createNewVisit({ shortUrl: {}, visit: {} })).toEqual(
2020-08-22 09:10:31 +03:00
{ type: CREATE_VISIT, shortUrl: {}, visit: {} },
2020-05-10 20:02:58 +03:00
));
});
});