diff --git a/src/components/deferredcontent/DeferredContent.spec.js b/src/components/deferredcontent/DeferredContent.spec.js new file mode 100644 index 000000000..058256f33 --- /dev/null +++ b/src/components/deferredcontent/DeferredContent.spec.js @@ -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: 'Nature' + } + }); + + await wrapper.setData({ loaded: true }); + expect(wrapper.find('img').exists()).toBe(true); + }); +}); \ No newline at end of file