Skip to content

Commit

Permalink
test(props): 🧪 修改 checkbox 测试
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjone committed May 30, 2023
1 parent e0f0125 commit bfcf951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/props.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ describe('Expand', () => {
describe('Checkbox', () => {
test('showCheckbox', async () => {
await wrapper.setProps({ showCheckbox: true });
expect(wrapper.find('.checkbox').exists()).toBe(true);
expect(wrapper.find('.xg-checkbox').exists()).toBe(true);
await wrapper.setProps({ showCheckbox: false });
expect(wrapper.find('.checkbox').exists()).toBe(false);
expect(wrapper.find('.xg-checkbox').exists()).toBe(false);
});
});

0 comments on commit bfcf951

Please sign in to comment.