mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Fixed #3802 - Improve folder structure for nuxt configurations
This commit is contained in:
parent
851950270b
commit
f5fe822afb
563 changed files with 1703 additions and 1095 deletions
15
components/lib/deferredcontent/DeferredContent.spec.js
Normal file
15
components/lib/deferredcontent/DeferredContent.spec.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { mount } from '@vue/test-utils';
|
||||
import DeferredContent from './DeferredContent.vue';
|
||||
|
||||
describe('DeferredContent', () => {
|
||||
it('should exist', async () => {
|
||||
const wrapper = mount(DeferredContent, {
|
||||
slots: {
|
||||
default: '<img src="/images/nature/nature4.jpg" alt="Nature"/>'
|
||||
}
|
||||
});
|
||||
|
||||
await wrapper.setData({ loaded: true });
|
||||
expect(wrapper.find('img').exists()).toBe(true);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue