Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Fix test for breaking change in should 2.0.x (fix #1013)

Travis Jeffery2bdf685f0e67
diff --git a/test/runnable.js b/test/runnable.js
index d21e80df..8e08af2c 100644
--- a/test/runnable.js
+++ b/test/runnable.js
@@ -93,7 +93,7 @@ describe('Runnable(title, fn)', function(){
test.run(function(err){
calls.should.equal(1);
- test.duration.should.be.a('number');
+ test.duration.should.be.type('number');
done(err);
})
})