Skip to content

Commit

Permalink
chore: addd unit case (ant-design#45781)
Browse files Browse the repository at this point in the history
(cherry picked from commit b21741d)
  • Loading branch information
Wxh16144 authored Nov 10, 2023
1 parent d2e9453 commit 4091164
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/radio/__tests__/radio.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,8 @@ describe('Radio', () => {
);
expect(getByRole('radio')).not.toBeDisabled();
});

it('have static property for type detecting', () => {
expect(Radio.__ANT_RADIO).toBeTruthy();
});
});
4 changes: 4 additions & 0 deletions components/switch/__tests__/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,8 @@ describe('Switch', () => {
);
errorSpy.mockRestore();
});

it('have static property for type detecting', () => {
expect(Switch.__ANT_SWITCH).toBeTruthy();
});
});

0 comments on commit 4091164

Please sign in to comment.