busterjs/buster — Issue #18: Tear down failures overshadow test errors
Author: cjohansen
Created: 2011-12-08 23:54:27+00:00
State: open

If you have a test with an assertion error in the tear down function and an error of some sort in the test, the runner only reports the teardown error, which is misleading:

```javascript
var buster = require("buster");
buster.spec.expose();

describe("Thing", function () {
before(function () {
array = [1,2,3]
});

after(function () {
expect(array.length).toEqual(4);
});

it("...", function () {
asd.sdf.sd.f.sdf = 2;
array.push(4)
})
});