diff --git a/src/packages/radio/__test__/radio.spec.tsx b/src/packages/radio/__test__/radio.spec.tsx index a7f5d71f59..c99aef1654 100644 --- a/src/packages/radio/__test__/radio.spec.tsx +++ b/src/packages/radio/__test__/radio.spec.tsx @@ -1,7 +1,7 @@ import * as React from 'react' -import { render, fireEvent, screen } from '@testing-library/react' -import '@testing-library/jest-dom' import { useState } from 'react' +import { fireEvent, render, screen } from '@testing-library/react' +import '@testing-library/jest-dom' import { Checklist } from '@nutui/icons-react' import Radio from '@/packages/radio' import RadioGroup from '@/packages/radiogroup' @@ -24,6 +24,17 @@ describe('radio', () => { expect(container.querySelector('.nut-radio-self-checked')).toBeTruthy() }) + test('radio checked-disabled', () => { + const { container } = render( + + Test Case + + ) + expect( + container.querySelector('.nut-radio-self-checked-disabled') + ).toBeTruthy() + }) + test('radio custom icon', () => { const { container } = render( } activeIcon={}>