From c5afb727fb2581729b19f9f112e4539e05d39776 Mon Sep 17 00:00:00 2001 From: haoziqaq <357229046@qq.com> Date: Tue, 1 Oct 2024 23:17:30 +0800 Subject: [PATCH] test(card): fix test cases --- packages/varlet-ui/src/card/__tests__/index.spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/varlet-ui/src/card/__tests__/index.spec.js b/packages/varlet-ui/src/card/__tests__/index.spec.js index 473984e11c3..f4ca56e9bfc 100644 --- a/packages/varlet-ui/src/card/__tests__/index.spec.js +++ b/packages/varlet-ui/src/card/__tests__/index.spec.js @@ -96,34 +96,34 @@ describe('test card component props', () => { wrapper.unmount() }) - test('test card outline', async () => { + test('test card outlined variant', async () => { const wrapper = mount(VarCard, { props: { - outline: true, + variant: 'outlined', }, }) expect(wrapper.find('.var-card--outline').exists()).toBe(true) await wrapper.setProps({ - outline: false, + variant: 'standard', }) expect(wrapper.find('.var-card--outline').exists()).toBe(false) wrapper.unmount() }) - test('test card filled', async () => { + test('test card filled variant', async () => { const wrapper = mount(VarCard, { props: { - filled: true, + variant: 'filled', }, }) expect(wrapper.find('.var-card--filled').exists()).toBe(true) await wrapper.setProps({ - filled: false, + variant: 'standard', }) expect(wrapper.find('.var-card--filled').exists()).toBe(false)