I have a function that has a function inside it I need to be able to test that the inner function gets called I'v tryed looking for examples of spyOn but not quite found anything I could us the code im trying to test is like
function OutterFunc(){
function InnerFunc(){
return "A";
}
var b = InnerFunc();
return b;
}
The test i wish i could do is that InnerFunc has been called Any help would be really really welcome