Add global mocks for $primevue config on test

This commit is contained in:
mertsincan 2023-04-28 14:58:46 +01:00
parent f6b5ca26ab
commit ed9af4cfb3
13 changed files with 19 additions and 134 deletions

View file

@ -1,19 +1,6 @@
import { config, mount } from '@vue/test-utils';
import { mount } from '@vue/test-utils';
import TriStateCheckbox from './TriStateCheckbox.vue';
config.global.mocks = {
$primevue: {
config: {
locale: {
aria: {
trueLabel: 'trueLabel',
falseLabel: 'falseLabel',
nullLabel: 'nullLabel'
}
}
}
}
};
let wrapper;
const modelValues = [true, false, null];
const emittedResults = [false, null, true];