karma-ng-html2js-preprocessor
karma-ng-html2js-preprocessor copied to clipboard
A Karma plugin. Compile AngularJS 1.x and 2.x templates to JavaScript on the fly.
Currently it just crashes, i.e.: fails with an error about failing to load the `moduleName`.
So when I use single quotes in my angular expressions, Lexer errors are thrown in my tests. Would it not be a good idea for the module to replace all...
I'd been getting parse errors such as this in my unit tests > Error: Failed to execute 'setAttribute' on 'Element': '\n\'' is not a valid attribute name. This happens when...
the template js file created by html2js preprocessor contains some strange characters that caused the error: SyntaxError: Parse error. For example, the error message: PhantomJS 1.9.8 (Mac OS X 0.0.0)...
Hi, I'm trying to test a directive with this kind of behaviour and if I use a dynamic template I have this error: Error: Unexpected request: GET /partials/widgets/farefinder-compact/ directives/search-criteria/templates/default.html No...
I've read two issues here, but the solutions don't work for me. When I run the karma start regularily it says: `angular is not defined` Then, when I add: public/lib/angular/angular.js...
It would be great to have a set of instructions outlining the exact steps needed to configure directive testing with external templates when using the "standard" AngularJS building tools/scaffolding provided...
Because of the replacement of new lines with `\n' +\n '`, chrome craps out if the file is too large (my current file is 9000 lines long). https://code.google.com/p/chromium/issues/detail?id=446047
I'm mapping my project folder to a drive in windows, causing the karma configuration file to be located at a root path (`Y:\` in my case). The logic of `config.basePath`...
This is a bug in IE 9. When a template contains `javascript:void(0)` the preprocessor has an issue where it won't retrieve the template. For example, an external template contains the...