Skip to content

Commit

Permalink
feat(radio): update test
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud committed Nov 27, 2024
1 parent 2e3a079 commit b93ff79
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/packages/radio/__test__/radio.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,12 @@ describe('radio', () => {

test('radio disable', () => {
const { container } = render(<Radio disabled>Test Case</Radio>)
expect(container.querySelector('.nut-icon')).toHaveClass(
'nut-radio-icon-disabled'
)
expect(container.querySelector('.nut-radio-self-disabled')).toBeTruthy()
})

test('radio checked', () => {
const { container } = render(<Radio checked>Test Case</Radio>)
expect(container.querySelector('.nut-icon')).toHaveClass(
'nut-icon-CheckChecked'
)
expect(container.querySelector('.nut-radio-self-checked')).toBeTruthy()
})

test('radio custom icon', () => {
Expand Down

0 comments on commit b93ff79

Please sign in to comment.