I am currently testing my Vue component.
I have this as my test:
describe("tests", () => {
wrapper = mount(myVueComponent, {
propsData: {
name: "required",
fullscreen: "true"
}
});
it("fullscreen on", () => {
expect(wrapper.vm.fullscreenElement).toBeFalsy();
console.log(wrapper.vm.html());
wrapper.vm.onFullscreen(); // this method checks one of the child components which is not visible in my wrapper..
})
});
When I try wrapper.vm.html() I get:
<div class="siDialog">
<!---->
</div>
But in my component template there children elements where, is now. How do I get the whole template in my test?
Aucun commentaire:
Enregistrer un commentaire