From bfbd4741a2d8ea6b793e8ec17ba8657e264c6ba6 Mon Sep 17 00:00:00 2001 From: chouchouji <70570907+chouchouji@users.noreply.github.com> Date: Wed, 24 Jul 2024 13:45:32 +0800 Subject: [PATCH] test(components): [tag] replace closeTransition with disableTransitions (#17611) * test(components): [tag] replace closeTransition with disableTransitions * test(components): [tag] complete type test --- packages/components/tag/__tests__/tag.test.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/components/tag/__tests__/tag.test.tsx b/packages/components/tag/__tests__/tag.test.tsx index 1610988ae7..a774c87e11 100644 --- a/packages/components/tag/__tests__/tag.test.tsx +++ b/packages/components/tag/__tests__/tag.test.tsx @@ -27,6 +27,10 @@ describe('Tag.vue', () => { const wrapper = mount(() => ) const vm = wrapper.vm expect(vm.$el.classList.contains('el-tag--success')).toEqual(true) + expect(vm.$el.classList.contains('el-tag--primary')).toEqual(false) + expect(vm.$el.classList.contains('el-tag--danger')).toEqual(false) + expect(vm.$el.classList.contains('el-tag--info')).toEqual(false) + expect(vm.$el.classList.contains('el-tag--warning')).toEqual(false) }) test('hit', () => { @@ -45,8 +49,8 @@ describe('Tag.vue', () => { expect(comp.emitted().close).toBeTruthy() }) - test('closeTransition', () => { - const wrapper = mount(() => ) + test('disableTransitions', () => { + const wrapper = mount(() => ) const vm = wrapper.vm expect(vm.$el.classList.contains('md-fade-center')).toEqual(false) })