Components added. Build issues fixed

This commit is contained in:
Bahadir Sofuoglu 2022-09-14 14:26:01 +03:00
parent 5b66ed1093
commit 18c3721848
344 changed files with 12446 additions and 8758 deletions

View file

@ -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');
});
});
});