I have the following HTML:
(in case it helps someone else)
For me the issue was having a backup file (i.e. .bkp.html) which was just an old copy of a template I was using for reference - but this was being included by karma since it matched the ".../**/*.html" pattern.