Skip to content

Commit

Permalink
chore: Updates checkboxField test titles to less wordy
Browse files Browse the repository at this point in the history
  • Loading branch information
hellofanny committed Sep 10, 2024
1 parent defbf67 commit 3fbdac2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ import { CheckboxField } from '../../../src/index'
expect.extend(toHaveNoViolations)

describe('CheckboxField', () => {
it('renders the CheckboxField component default state', () => {
it('renders the default state', () => {
render(<CheckboxField label="Default" id="checkboxfield-default" />)

const input = screen.getByLabelText('Default') as HTMLInputElement

expect(input.checked).toBe(false)
})

it('renders the CheckboxField component checked state', () => {
it('renders the checked state', () => {
render(<CheckboxField label="Checked" id="checkboxfield-checked" checked />)

const input = screen.getByLabelText('Checked') as HTMLInputElement
expect(input.checked).toBe(true)
})

it('renders the CheckboxField component with disabled state', () => {
it('renders the disabled state', () => {
render(
<CheckboxField label="Disabled" id="checkboxfield-disabled" disabled />
)
Expand All @@ -33,7 +33,7 @@ describe('CheckboxField', () => {
expect(input.disabled).toBe(true)
})

it('renders the CheckboxField component with checked/partial state', () => {
it('renders the checked/partial state', () => {
render(
<CheckboxField
label="Checked & Partial"
Expand Down
2 changes: 1 addition & 1 deletion packages/components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"src/**/*.test.tsx",
"src/**/*.stories.ts",
"src/**/*.stories.tsx",
"src/typings/utils.d.ts",
"src/typings/utils.d.ts"
]
}

0 comments on commit 3fbdac2

Please sign in to comment.