Test fixes

pull/6424/head
tugcekucukoglu 2024-09-17 12:09:05 +03:00
parent 3a9ee1665f
commit 3fbb6c0a26
2 changed files with 0 additions and 26 deletions

View File

@ -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(`<button class="p-button p-component" type="button" data-pc-name="button" data-p-disabled="false" data-pc-section="root" pc7=""><span class="ml-2 font-bold">Default PrimeVue Button</span></button>`);
});
});

View File

@ -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('<span class="p-tag p-component" data-pc-name="tag" data-pc-section="root" pc5=""><!--v-if--><i class="pi pi-discord"></i></span>');
});
});
describe('Tag.vue', () => {
it('should be rounded', () => {
const wrapper = mount(Tag, {