I found below example by the link that I given in the question, and that fixture is used for HTML
loadFixtures('myfixture.html');
// Run test
some.methodToTest();
// Expect that the methodToTest has modified the content in the div
expect($('#fixtureId')).to...;
I found the answer for HBS also, and it is as follows:-
- Instead of loading
myfixture.html
, I loaded myHBS file
. - Moreover the same can be done by var t = readFixtures('myFixture.hbs').
- Another way be to use
Handlebars.compile('myFixture.hbs')