import * as React from 'react' import { render } from '@testing-library/react' import '@testing-library/jest-dom' import { CButton } from '../index' test('loads and displays CButton component', async () => { const { container } = render(Test) expect(container).toMatchSnapshot() }) test('CButton customize witch href', async () => { const { container } = render( Test ) expect(container).toMatchSnapshot() }) test('CButton customize', async () => { const { container } = render( Test ) expect(container).toMatchSnapshot() expect(container.firstChild).toHaveClass('bazinga') expect(container.firstChild).toHaveClass('btn') expect(container.firstChild).toHaveClass('btn-ghost-warning') expect(container.firstChild).toHaveClass('btn-lg') expect(container.firstChild).toHaveClass('rounded') })