inside test file I want to check results after action
ctrl.send('createLoanApplication').then(function(){
console.log('test');
});
this is action
createLoanApplication: function () {
var value = this.get('selectedCompany');
if (value) {
var controller = this;
return $.post('/api/loanapplication/create/' + value).done(function (data) {
controller.transitionToRoute('loan-details', data.id);
});
}
}