mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Add global mocks for $primevue config on test
This commit is contained in:
parent
f6b5ca26ab
commit
ed9af4cfb3
13 changed files with 19 additions and 134 deletions
|
@ -1,20 +1,6 @@
|
|||
import { mount, config } from '@vue/test-utils';
|
||||
import { mount } from '@vue/test-utils';
|
||||
import PickList from './PickList.vue';
|
||||
|
||||
config.global.mocks = {
|
||||
$primevue: {
|
||||
config: {
|
||||
locale: {
|
||||
aria: {
|
||||
moveUp: 'Move Up',
|
||||
moveDown: 'Move Down',
|
||||
moveTop: 'Move Top',
|
||||
moveBottom: 'Move Bottom'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
describe('PickList.vue', () => {
|
||||
let wrapper;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue