Skip to content

armgit / mocha

Public Imported from GitHub
0

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

in runnable test, comparing to undefined error's message rather than a literal

David da Silvaa2562627fc5a
diff --git a/test/runnable.js b/test/runnable.js
index dd05a754..2508a5fa 100644
--- a/test/runnable.js
+++ b/test/runnable.js
@@ -1,4 +1,5 @@
var mocha = require('../')
+ , utils = mocha.utils
, Runnable = mocha.Runnable
, EventEmitter = require('events').EventEmitter;
@@ -232,7 +233,7 @@ describe('Runnable(title, fn)', function(){
});
test.run(function(err) {
- err.message.should.equal('Caught undefined error, did you throw without specifying what?');
+ err.message.should.equal(utils.undefinedError().message);
done();
})
});