mercredi 13 avril 2016

How do I do QUnit Integration testing in Ember for a component that uses a helper that outputs HTML?

I have an Ember component that uses a helper that creates HTML and I am trying to create a test that checks the HTML that results from the combined component and helper HTML.

Example...
component produces:<div class="one"></div>

helper produces:<div class="two"></div>

the combine produces:<div class="one"><div class="two"></div></div>

What is happening is that HTMLBars is not producing the helper's HTML. It does input the JSON value fed into the helper.

So the test produces:<div class="one">true</div>

Do I need to included something to say that the helper should be active?

Aucun commentaire:

Enregistrer un commentaire