My code is as below:
angular.extend($scope, {
refreshQueries: function() {
//code to refresh the tab.......
},
queriesTab: {
tab: 'queryTab',
refreshFunc: $scope.refreshQueries,
refreshInterval: 5
}
});
I want to check using jasmine whether I am able to switch the tab or not.. Basically wanted to spyon 'refreshFunc' of queriesTab tab.. How can I do that?
Not able to to spyon using below syntax in jasmine test case.var queriesFunc = spyOn(scope.queriesTab,'refreshFunc');