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
|
@ -0,0 +1,32 @@
|
|||
import { config, mount } from '@vue/test-utils';
|
||||
import DataViewLayoutOptions from './DataViewLayoutOptions.vue';
|
||||
|
||||
config.global.mocks = {
|
||||
$primevue: {
|
||||
config: {
|
||||
locale: {
|
||||
aria: {
|
||||
listView: 'listView',
|
||||
gridView: 'gridView'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
describe('DataViewLayoutOptions.vue', () => {
|
||||
it('should exist', async () => {
|
||||
const wrapper = mount(DataViewLayoutOptions, {
|
||||
props: {
|
||||
modelValue: 'grid'
|
||||
}
|
||||
});
|
||||
|
||||
expect(wrapper.find('.p-dataview-layout-options').exists()).toBe(true);
|
||||
expect(wrapper.find('.p-highlight > .pi-th-large').exists()).toBe(true);
|
||||
|
||||
wrapper.vm.$emit('update:modelValue', 'list');
|
||||
|
||||
expect(wrapper.emitted()['update:modelValue'][0]).toEqual(['list']);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue