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;
}
}]);
I want mock "object" variable in jasmine or mock the new instance of Concept.how to mock this or is there any passible mock or stub on object.method?