So far, that’s all and well, as long as I only want to make assertions about the rendered HTML. But let’s say I want to test a method I attached to the Template instance (in the
How can I get a hold of the Template instance from within the
I’ve been reading the docs for over an hour and tried different things, but I can’t get a hold of the instance. According to the docs,
Blaze.renderWithData() returns a
Blaze.View, which is supposed
to have a
templateInstance() method. However, in my tests, that was not the case.
What am I missing here?