karma-html2js-preprocessor
karma-html2js-preprocessor copied to clipboard
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.