I've two functions funcA() and funcB(), I'm writing unit test cases for $scope.funcA().
Below is the the definition:
function funcB(){
//statements
console.log("At function B");
};
$scope.funcA() = function(){
funcB();
console.log("At function A");
};
Right now while I'm testing my $scope.funcA() is actually calling my funcB(). How to stop this and make a fake call or mock to funcB(); in Jasmine.