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) })