I am getting a hard time to resolve mocha chai test case for angular js configuration file .
angular.module('myApp.myModule', []).config(function ($stateProvider, $urlRouterProvider) {
$stateProvider.state('myModule', {
url: '/myModule',
templateUrl: function(){
return 'scripts/my-module/views/my-module.html';
},
controller: 'myModuleCtrl',
controllerAs: 'myCtrl',
css: 'styles/lazy-load/my-module.css'
});
$urlRouterProvider.otherwise('/');
})
I need to cover mocha chai test case for return function of "templateUrl" which is returning a url ('scripts/my-module/views/my-module.html').