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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -