mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
* Add all missing libraries in the packages/apps. * Add all missing Vitest imports to the tests. * Add some missing exports to ui. * Fix the admonition export. * Fix various minor bugs. * Migrate the ui package to use vitest.
18 lines
575 B
React
18 lines
575 B
React
import { render, screen } from '@testing-library/react'
|
|
import React from 'react'
|
|
import { describe, expect, it } from 'vitest'
|
|
|
|
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()
|
|
})
|
|
})
|