I have an AngularJS
module defined in a single HTML
file. Unfortunately, I cannot refactor it into separate files.
I need to add unit tests with angular-mocks
and jasmine
, and I need to run the unit tests with Node.JS (i.e. npm jasmine
). I would like to leave karma
out of the picture.
I looked at the angular-seed
project but all the controllers and views are nicely separated, which is not my case.
How can I reference the AngularJS
module in my single HTML
files from my spec
files?