mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-04-09 16:43:36 +02: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();
|
|
});
|
|
});
|