I am new to writing unit tests.
I am trying to write a unit test for a tooltip Ember component. The usage pattern is
<div id="parent"> I have a tooltip</div>
{{tooltip-comp}}
tooltip content
{{/tooltip-comp}}
I am trying to check that clicking the parent div (with id parent), makes the 'isVisible' property true for the component.
Do I need to somehow insert a parent to DOM to be able to do this?
I am using Ember CLI.
Aucun commentaire:
Enregistrer un commentaire