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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -