mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Fixed #3802 - Improve folder structure for nuxt configurations
This commit is contained in:
parent
851950270b
commit
f5fe822afb
563 changed files with 1703 additions and 1095 deletions
|
@ -1,31 +0,0 @@
|
|||
import { mount } from '@vue/test-utils';
|
||||
import Fieldset from './Fieldset.vue';
|
||||
|
||||
describe('Fieldset.vue', () => {
|
||||
let wrapper;
|
||||
|
||||
beforeEach(() => {
|
||||
wrapper = mount(Fieldset, {
|
||||
props: {
|
||||
legend: 'Header',
|
||||
toggleable: true,
|
||||
collapsed: true
|
||||
},
|
||||
slots: {
|
||||
default: `<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit</p>`
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
it('should exist', () => {
|
||||
expect(wrapper.find('.p-fieldset.p-component').exists()).toBe(true);
|
||||
expect(wrapper.find('.p-fieldset-legend').exists()).toBe(true);
|
||||
expect(wrapper.find('.p-toggleable-content').exists()).toBe(true);
|
||||
});
|
||||
|
||||
it('toggleable check', async () => {
|
||||
await wrapper.setProps({ collapsed: false });
|
||||
wrapper.vm.toggle({});
|
||||
expect(wrapper.emitted()['update:collapsed'][0]).toEqual([true]);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue