1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00
commons/client/src/components/molecules/Pagination.test.tsx
2019-04-15 22:46:49 +02:00

18 lines
539 B
TypeScript

import React from 'react'
import { render } from 'react-testing-library'
import Pagination from './Pagination'
describe('Button', () => {
it('renders without crashing', () => {
const { container } = render(
<Pagination
totalPages={20}
currentPage={1}
handlePageClick={() => Promise.resolve()}
/>
)
expect(container.firstChild).toBeInTheDocument()
container.firstChild && expect(container.firstChild.nodeName).toBe('UL')
})
})