Skip to content

armgit / mocha

Public Imported from GitHub
0

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

fix test for my sneaky change to timeout()

Christopher Hiller989758f3d97e
diff --git a/test/runnable.js b/test/runnable.js
index ba1ea48f..d6b020a6 100644
--- a/test/runnable.js
+++ b/test/runnable.js
@@ -41,10 +41,11 @@ describe('Runnable(title, fn)', function(){
})
})
- describe('#timeout(ms) when ms>2^31', function(){
- it('should throw an error', function () {
- var run = new Runnable;
- run.timeout.bind(run, 1e10).should.throw(/Timeout too large/);
+ describe('#timeout(ms) when ms>2^31', function() {
+ it('should set disabled', function() {
+ var run = new Runnable();
+ run.timeout(1e10);
+ run.enableTimeouts().should.be.false;
});
});