import * as React from 'react'
import { render } from '@testing-library/react'
import '@testing-library/jest-dom'
import { CPagination, CPaginationItem } from '../index'
test('loads and displays CPagination component', async () => {
const { container } = render(Test)
expect(container).toMatchSnapshot()
})
test('CPagination customize', async () => {
const { container } = render(
Test
)
expect(container).toMatchSnapshot()
let element = container.firstChild
if (element === null) {
expect(true).toBe(false)
} else {
element = element.firstChild
expect(element).toHaveClass('bazinga')
expect(element).toHaveClass('pagination')
expect(element).toHaveClass('pagination-lg')
}
})
test('CPagination example', async () => {
const { container } = render(
A
B
C
)
expect(container).toMatchSnapshot()
})