I have: code snippet like this:
Utils.calculate(data).then(
function(data) { alert('success'); },
function(data) { alert('error'); }
);
Problem: Neither 'seccess'
nor 'error'
are called.
Question: What I should to check?
P.S. I launch those code snippet with jasmine
. So its probably that then
callback have no time to run. So I decided ti set 1 second timeout at the end of my test - no result.