From 3fbb6c0a269d1ba824f8776d1024cde04d745452 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Tue, 17 Sep 2024 12:09:05 +0300 Subject: [PATCH] Test fixes --- packages/primevue/src/button/Button.spec.js | 13 ------------- packages/primevue/src/tag/Tag.spec.js | 13 ------------- 2 files changed, 26 deletions(-) diff --git a/packages/primevue/src/button/Button.spec.js b/packages/primevue/src/button/Button.spec.js index fcb939668..ebef2382b 100644 --- a/packages/primevue/src/button/Button.spec.js +++ b/packages/primevue/src/button/Button.spec.js @@ -1,5 +1,4 @@ import { mount } from '@vue/test-utils'; -import { h } from 'vue'; import Button from './Button.vue'; describe('Button.vue', () => { @@ -70,15 +69,3 @@ describe('Button.vue', () => { expect(wrapper.find('.p-button-loading').exists()).toBe(false); }); }); - -describe('Button.vue', () => { - it('should render default slot', () => { - const wrapper = mount(Button, { - slots: { - default: h('span', { class: 'ml-2 font-bold' }, 'Default PrimeVue Button') - } - }); - - expect(wrapper.html()).toBe(``); - }); -}); diff --git a/packages/primevue/src/tag/Tag.spec.js b/packages/primevue/src/tag/Tag.spec.js index 6204d1dd3..0bd68fe97 100644 --- a/packages/primevue/src/tag/Tag.spec.js +++ b/packages/primevue/src/tag/Tag.spec.js @@ -1,5 +1,4 @@ import { mount } from '@vue/test-utils'; -import { h } from 'vue'; import Tag from './Tag.vue'; describe('Tag.vue', () => { @@ -46,18 +45,6 @@ describe('Tag.vue', () => { }); }); -describe('Tag.vue', () => { - it('should render default slot', () => { - const wrapper = mount(Tag, { - slots: { - default: h('i', { class: 'pi pi-discord' }, '') - } - }); - - expect(wrapper.html()).toBe(''); - }); -}); - describe('Tag.vue', () => { it('should be rounded', () => { const wrapper = mount(Tag, {