ben-page / node-test

A simple, asynchronous test runner for Node.js.
https://www.npmjs.com/package/node-test
MIT License
4 stars 1 forks source link

notThrows() issue? #18

Closed ghost closed 8 years ago

ghost commented 8 years ago

I checked against Chai and Expect and found that this code doesn't throw. There are other differences too.

suite.test('t.notThrows()', t => {
    t.notThrows(() => {
        throw new Error('This is a message');
    });
});

However it throws in this module if you try it out.

Chai: https://github.com/chaijs/chai/blob/master/test/assert.js#L1150

ghost commented 8 years ago

I close this. Has been solved.