angular.module('conceptSet')
.directive('conceptSet', ['contextChangeHandler',function(){
var object=new Concept();
var init = function () {
return conceptService.getConcept({
name: conceptName
}).then(function (response) {
$scope.obs=$scope.set?object.method():null;
}
}]);
我想在jasmine中模拟“object”变量或者模拟Concept.how的新实例来模拟这个或者在object.method上有任何可通行的模拟或存根吗?