From bfcf951056439e933191691344b0f28a5c6cb2bb Mon Sep 17 00:00:00 2001 From: xpyjs Date: Tue, 30 May 2023 10:40:22 +0800 Subject: [PATCH] =?UTF-8?q?test(props):=20=F0=9F=A7=AA=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20checkbox=20=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unit/props.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/props.spec.ts b/tests/unit/props.spec.ts index cddc781..654a861 100644 --- a/tests/unit/props.spec.ts +++ b/tests/unit/props.spec.ts @@ -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); }); });