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
26
components/lib/divider/Divider.spec.js
Normal file
26
components/lib/divider/Divider.spec.js
Normal file
|
@ -0,0 +1,26 @@
|
|||
import { mount } from '@vue/test-utils';
|
||||
import Divider from './Divider.vue';
|
||||
|
||||
describe('Divider.vue', () => {
|
||||
it('should exist', () => {
|
||||
const wrapper = mount(Divider);
|
||||
|
||||
expect(wrapper.find('.p-divider.p-component').exists()).toBe(true);
|
||||
expect(wrapper.find('.p-divider.p-component').classes()).toContain('p-divider-horizontal');
|
||||
expect(wrapper.find('.p-divider.p-component').classes()).toContain('p-divider-left');
|
||||
});
|
||||
|
||||
it('should exist', () => {
|
||||
const wrapper = mount(Divider, {
|
||||
props: {
|
||||
layout: 'vertical',
|
||||
align: 'center',
|
||||
type: 'dashed'
|
||||
}
|
||||
});
|
||||
|
||||
expect(wrapper.find('.p-divider-vertical').exists()).toBe(true);
|
||||
expect(wrapper.find('.p-divider-dashed').exists()).toBe(true);
|
||||
expect(wrapper.find('.p-divider-center').exists()).toBe(true);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue