Skip to content

armgit / mocha

Public Imported from GitHub
0

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

fix done() called multiple times with an error test

TJ Holowaychuk2464250fa4cc
diff --git a/test/runnable.js b/test/runnable.js
index 81822a56..0e03b77b 100644
--- a/test/runnable.js
+++ b/test/runnable.js
@@ -162,7 +162,7 @@ describe('Runnable(title, fn)', function(){
test.on('error', function(err){
++errCalls;
- err.message.should.equal('done() called multiple times');
+ err.message.should.equal('fail');
calls.should.equal(1);
errCalls.should.equal(1);
done();