Components update v.3.21.0

This commit is contained in:
Bahadır Sofuoğlu 2022-12-08 14:04:25 +03:00
parent 18497d55b1
commit defd6ff6e2
242 changed files with 28022 additions and 17523 deletions

View file

@ -1,10 +1,12 @@
import { mount } from '@vue/test-utils';
import PrimeVue from 'primevue/config';
import Image from './Image.vue';
describe('Image.vue', () => {
it('should exist', () => {
const wrapper = mount(Image, {
global: {
plugins: [PrimeVue],
stubs: {
teleport: true
}
@ -21,6 +23,7 @@ describe('Image.vue', () => {
it('should preview', async () => {
const wrapper = mount(Image, {
global: {
plugins: [PrimeVue],
stubs: {
teleport: true
}
@ -42,6 +45,8 @@ describe('Image.vue', () => {
await wrapper.setData({ maskVisible: false });
expect(wrapper.find('.p-image-mask').exists()).toBe(false);
setTimeout(() => {
expect(wrapper.find('.p-image-mask').exists()).toBe(false);
}, 25);
});
});