mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
18 lines
539 B
TypeScript
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')
|
|
})
|
|
})
|