diff --git a/test/__snapshots__/index.test.js.snap b/test/__snapshots__/index.test.js.snap index 795c5b3..c795c4d 100644 --- a/test/__snapshots__/index.test.js.snap +++ b/test/__snapshots__/index.test.js.snap @@ -593,3 +593,87 @@ exports[`Pagination should render with no ellipses if not needed - visible == ma `; + +exports[`Pagination should use boolean flags as classnames 1`] = ` + +`; diff --git a/test/index.test.js b/test/index.test.js index e8f193f..db6fc8f 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -113,6 +113,24 @@ describe('Pagination', () => { ).toMatchSnapshot(); }); + test('should use boolean flags as classnames', () => { + expect( + render( + {}} + /> + ) + ).toMatchSnapshot(); + }); + test('should call callback when previous clicked', () => { const onChange = jest.fn(); const tree = renderer.create(