Resharper Jasmine test of angular service / controller

Hello everyone, 

I'm new to the jasmine test runner in Resharper. I'm running visual studio 2015 and want to test my angular services and controllers. So far I can write a simple test that runs a function in a very basic external javascript file but am struggling to progress beyond that.  From searching on the web I believe that I need to instantiate "module" beforeeach test but can't even get that working. 

I believe I need to reference angular libraries but should this be done in the test file or the html harness? I've put references in both.

Time after time I just get "ReferenceError: module is not defined" in the browser window. 

Any guidance would be hugely appreciated.

I've attached my test script and harness.html 



 

 

 

 

 

 

 

1

Please sign in to leave a comment.