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

11 lines
370 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(
{ type: CREATE_VISIT, shortUrl: {}, visit: {} }
));
});
});