mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Components update v.3.21.0
This commit is contained in:
parent
18497d55b1
commit
defd6ff6e2
242 changed files with 28022 additions and 17523 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue