docbrown/app/javascript/listings/__tests__/NextPageButton.test.jsx
2020-05-11 14:42:55 -04:00

16 lines
405 B
JavaScript

import { h } from 'preact';
import { render } from 'preact-render-spy';
import NextPageButton from '../components/NextPageButton';
describe('<NextPageButton />', () => {
const defaultProps = {
onClick: () => {
return 'onClick';
},
};
it('Should match the snapshot', () => {
const tree = render(<NextPageButton {...defaultProps} />);
expect(tree).toMatchSnapshot();
});
});