mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-03-14 11:28:56 +01:00
18 lines
419 B
JavaScript
18 lines
419 B
JavaScript
|
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();
|
||
|
});
|
||
|
});
|