You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do I go about making sub tests of error tests?
The below doesn't do the 2nd test.
And it also doesn't print out which test had the error. When I first noticed this in a bigger group of tests, it took me a while to figure out which test actually had the error cause all the tests are running async.
varvows=require('vows'),fs=require('fs');assert=require('assert');vows.describe('xxx').addBatch({'abc':{topic:function(){fs.mkdir('/fail',0775,this.callback);},err:function(err,func){assert.isNotNull(err);},'This must fail too':{topic:function(){fs.mkdir('/fail/fail',0775,this.callback);},'Expect Failure':function(err){assert.isNotNull(err);}}}}).export(module);
The text was updated successfully, but these errors were encountered:
How do I go about making sub tests of error tests?
The below doesn't do the 2nd test.
And it also doesn't print out which test had the error. When I first noticed this in a bigger group of tests, it took me a while to figure out which test actually had the error cause all the tests are running async.
The text was updated successfully, but these errors were encountered: