Your function filterTopPricepoints()
is "private" inside viewTopThreePricepoints()
(like a local variable). Therefore it cannot be accessed from the jasmine test.
A possible solution could be to move the function out of the other function(s):
function viewSingleProduct(){
...
function viewTopThreePricepoints(){
...
}
}
function filterTopPricepoints(allPricepointsArray, limit){
...
}