mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +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
28
components/lib/checkbox/Checkbox.spec.js
Normal file
28
components/lib/checkbox/Checkbox.spec.js
Normal file
|
@ -0,0 +1,28 @@
|
|||
import { mount } from '@vue/test-utils';
|
||||
import Checkbox from './Checkbox.vue';
|
||||
|
||||
describe('Checkbox.vue', () => {
|
||||
let wrapper;
|
||||
|
||||
beforeEach(() => {
|
||||
wrapper = mount(Checkbox, {
|
||||
props: {
|
||||
modelValue: false,
|
||||
binary: true
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
it('should exist', () => {
|
||||
expect(wrapper.find('.p-checkbox.p-component').exists()).toBe(true);
|
||||
expect(wrapper.find('.p-checkbox-icon.pi.pi-check').exists()).toBe(false);
|
||||
});
|
||||
|
||||
it('should exist', async () => {
|
||||
await wrapper.setProps({ modelValue: true });
|
||||
|
||||
expect(wrapper.find('.p-checkbox-checked').exists()).toBe(true);
|
||||
expect(wrapper.find('.p-checkbox-box.p-highlight').exists()).toBe(true);
|
||||
expect(wrapper.find('.p-checkbox-icon.pi.pi-check').exists()).toBe(true);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue