karma-runner/karma-html2js-preprocessor — pull request #5 by analog-nico (2014-07-05 21:36:27+00:00)
Title: Allow for failures

If the template was not properly loaded `document.getElementById('tpl')` would return `null`. Then `expect(...).toBeDefined()` would still report a success. I changed it to `expect(...).toBeTruthy()` so it actually reports a failure if something goes wrong.