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