mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Components added. Build issues fixed
This commit is contained in:
parent
5b66ed1093
commit
18c3721848
344 changed files with 12446 additions and 8758 deletions
|
@ -1,6 +1,19 @@
|
|||
import { mount } from '@vue/test-utils';
|
||||
import { config, mount } from '@vue/test-utils';
|
||||
import Listbox from './Listbox.vue';
|
||||
|
||||
config.global.mocks = {
|
||||
$primevue: {
|
||||
config: {
|
||||
locale: {
|
||||
aria: {
|
||||
trueLabel: 'trueLabel',
|
||||
falseLabel: 'falseLabel',
|
||||
nullLabel: 'nullLabel'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
describe('Listbox.vue', () => {
|
||||
let wrapper;
|
||||
|
||||
|
@ -9,11 +22,11 @@ describe('Listbox.vue', () => {
|
|||
props: {
|
||||
modelValue: null,
|
||||
options: [
|
||||
{name: 'New York', code: 'NY'},
|
||||
{name: 'Rome', code: 'RM'},
|
||||
{name: 'London', code: 'LDN'},
|
||||
{name: 'Istanbul', code: 'IST'},
|
||||
{name: 'Paris', code: 'PRS'}
|
||||
{ name: 'New York', code: 'NY' },
|
||||
{ name: 'Rome', code: 'RM' },
|
||||
{ name: 'London', code: 'LDN' },
|
||||
{ name: 'Istanbul', code: 'IST' },
|
||||
{ name: 'Paris', code: 'PRS' }
|
||||
],
|
||||
optionLabel: 'name'
|
||||
}
|
||||
|
@ -35,4 +48,4 @@ describe('Listbox.vue', () => {
|
|||
|
||||
expect(wrapper.findAll('li.p-listbox-item')[0].classes()).toContain('p-highlight');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue