angular.module('some-module').service('some-service', [
'a_workflow',
'b_api',
function(Workflow, Api) {
this.prepareToEnterFlow = function(forward, flowContext, pageContext, transitionData, callback) {
flowContext.data = transitionData.data;
$q.when(flowContext.data.container).finally(function() {
var value = 'I am testing';
console.log(value);
$q.when(flowContext.data.container.cookies).finally(function() {
});
});
}
}
]);
我如何在单元测试中看到“我正在测试”?我需要嘲笑到达那里吗?