score:0

you can't test html files directly but you can load fixtures using jasmine-fixture or jasmine-dom

score:1

no, i don't think that it is possible to test html files with jasmine (btw. jasmine is great!).

but what exactly do you want to test?
- the d3.js library?
--> do not unit-test external libs
- some js functions used within your html --> extract them in a separate js-file and include that in your html
or
- the structure of your generated html?
--> use an browser test automation e.g. selenium


Related Query

More Query from same tag