如何使用jasmine对回调函数进行单元测试。
let somefunctionCallback = function (error, response) {
if (!error) {
$('.loading').hide();
$scope.infomsg = response.data.message;
$scope.showInfoMsg();
$timeout(vm.hideInfoMsg, 3000);
someFactory.getTestList('avList', $scope.tokenId, vm.someotherCallback);
}
};