☕️ Classic, reliable, trusted test framework for Node.js and the browser
refactored test
TJ Holowaychuk556e592433ed
diff --git a/test/runnable.js b/test/runnable.jsindex d3fe1c18..81822a56 100644--- a/test/runnable.js+++ b/test/runnable.js@@ -19,18 +19,19 @@ describe('Runnable(title, fn)', function(){throw new Error("Don't use global time-related stuff.");}- beforeEach(function () {+ beforeEach(function(){global.setTimeout =global.setInterval =global.clearTimeout =global.clearInterval = poisonPill;- });- afterEach(function () {+ })++ afterEach(function(){global.setTimeout = setTimeout;global.setInterval = setInterval;global.clearTimeout = clearTimeout;global.clearInterval = clearInterval;- });+ })describe('#timeout(ms)', function(){it('should set the timeout', function(){