mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 21:59:16 +03:00
16 lines
528 B
JavaScript
16 lines
528 B
JavaScript
import React from 'react'
|
|
import { render, screen } from '@testing-library/react'
|
|
import Checkbox from './Checkbox'
|
|
|
|
describe('#Checkbox', () => {
|
|
it('should render checkbox correctly', () => {
|
|
render(<Checkbox data-testid="form-checkbox" label="labelIsRequired" />)
|
|
expect(screen.queryByTestId('form-checkbox')).toBeInTheDocument()
|
|
})
|
|
|
|
it('should show label', () => {
|
|
render(<Checkbox data-testid="form-checkbox" label="JavaScript" />)
|
|
expect(screen.queryByText('JavaScript')).toBeInTheDocument()
|
|
})
|
|
})
|