scala - How to configure rhino to run jasmine tests for angularjs controllers -



scala - How to configure rhino to run jasmine tests for angularjs controllers -

i having problem getting unit tests working angular js app using jasmine sbt plugin.

when add together angular.js ( ver 1.3.1) test.dependecies.js

envjasmine.loadglobal(envjasmine.libdir + "/angular.js"); envjasmine.loadglobal(envjasmine.libdir + "/ui-bootstrap-0.11.2.js"); envjasmine.loadglobal(envjasmine.testdir + "/lib/angular-mocks.js");

i got next error

[ envjs/1.6 (rhino; u; linux amd64 3.13.0-32-generic; en-us; rv:1.7.0.rc2) resig/20070309 pilotfish/1.2.13 ] not read file: /opt/scala/myproject/src/main/webapp/static/js/lib/angular.js error was: typeerror: cannot find function queryselector in object [object htmldocument].

i cant figure if there compatibility issue angular , rhino or in jasmine config

angularjs scala sbt rhino

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -