Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Fix test

Travis Jeffery8741f71eba32
diff --git a/test/runnable.js b/test/runnable.js
index f78cc6ff..dd05a754 100644
--- a/test/runnable.js
+++ b/test/runnable.js
@@ -225,16 +225,14 @@ describe('Runnable(title, fn)', function(){
});
})
- it.skip('should not throw its own exception if passed a non-object', function (done) {
+ it('should not throw its own exception if passed a non-object', function (done) {
var test = new Runnable('foo', function(done) {
throw null;
process.nextTick(done);
});
test.run(function(err) {
- if (err !== null) {
- throw new should.AssertionError('err should be null');
- }
+ err.message.should.equal('Caught undefined error, did you throw without specifying what?');
done();
})
});