how do you specify a timeout for an Intern test that returns a promise -
in intern can specify timeout using this.async(), example
var d = this.async(1000); xhr(..., d.callback(...)); return d;
however, how can specify timeout if test returns promise? example:
return asyncfunc().then(function(res){ assert.strictequals(res, 2); });
set this.timeout
timeout value. see writing tests intern more details.
Comments
Post a Comment