karma-html2js-preprocessor icon indicating copy to clipboard operation
karma-html2js-preprocessor copied to clipboard

Allow for failures

Open analog-nico opened this issue 11 years ago • 0 comments

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.

analog-nico avatar Jul 05 '14 21:07 analog-nico