cloudhead/vows — Issue #142: vows error's out when a parent topic passes an error to its callback
Author: jupiter
Created: 2011-10-14 15:56:12+00:00
State: open

```
var vows = require('vows')
, assert = require('assert');

vows
.describe('Nesting')
.addBatch({
'when error is provided at top level topic': {
topic: function() {
this.callback(new Error());
},

'error should be passed to individual tests': function(err, doc) {
assert.ok(err);
},

'next level topic should not error out the whole process': {
topic: function(doc) {
this.callback(null);
},

'doc should not be provided': function(err, doc) {
assert.ok(!doc);
}
},
}
})
.export(module);
```

Produces:

```

♢ Nesting

when error is provided at top level topic
✓ error should be passed to individual tests
✗ Errored » 1 honored ∙ 1 errored
```

In some more complicated tests of mine, this same issue seems not to be caught by vows and produces hanging.