gruntjs - how to do unit testing for angularJs service using karma? -


i have service named "dataservice" used json data url.this dataservice returns jsondata.now after running "grunt test" getting error "urlroot normalized '/karma/' , client args should array of strings".can me solve this.

use following process:

  • define url in package.json
  • require grunt in karma.conf.js
  • reference url via grunt.readjson
  • use array.concat construct files array

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -