// @flow import React from 'react'; import renderer from 'react-test-renderer'; import Pagination from './Pagination'; describe('Pagination', () => { const props = { prevPagePath: '/page/1', nextPagePath: '/page/3', hasNextPage: true, hasPrevPage: true }; it('renders correctly', () => { const tree = renderer.create().toJSON(); expect(tree).toMatchSnapshot(); }); });