mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Styles imported. Components added
This commit is contained in:
parent
3cb3910561
commit
8264983db4
452 changed files with 55902 additions and 0 deletions
15
components/deferredcontent/DeferredContent.spec.js
Normal file
15
components/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="demo/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