mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-03-14 03:18:38 +01:00
19 lines
428 B
JavaScript
19 lines
428 B
JavaScript
// @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(<Pagination {...props} />).toJSON();
|
|
expect(tree).toMatchSnapshot();
|
|
});
|
|
});
|