我的controller.js代码如下所示:
(function(){
‘use strict’;
define([‘angular’, window.myBasepath + ‘/app/apple.js’], function(angular, app, $sep){
app.controller(‘mycontroller’, [‘$scope’, ‘$state’, ‘someservice’, ‘myservice’, function($scope, $state,someservice,myservice is){
$scope.myVariableDetails = someservice.myVariableDetails;
$scope.myCreateTicket = function _myCreateTicket() {
myservice.createTicket();
}
}]);
});
}());
我需要为这段代码编写jasmine测试用例。有人可以分享一个简短的解释测试用例,这样有助于理解。
暂无答案!
目前还没有任何答案,快来回答吧!