From 0690d1affa24fe5b8e48de29ac68a620b3134462 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Fri, 29 Sep 2017 22:26:38 -0700 Subject: [PATCH] remove unused manual tests which remained in test/misc/ --- test/misc/exit.spec.js | 20 -------------------- test/misc/many.spec.js | 29 ----------------------------- test/misc/nontty.spec.js | 11 ----------- 3 files changed, 60 deletions(-) delete mode 100644 test/misc/exit.spec.js delete mode 100644 test/misc/many.spec.js delete mode 100644 test/misc/nontty.spec.js diff --git a/test/misc/exit.spec.js b/test/misc/exit.spec.js deleted file mode 100644 index 916752f9b1..0000000000 --- a/test/misc/exit.spec.js +++ /dev/null @@ -1,20 +0,0 @@ -'use strict'; - -describe('exit', function () { - // note --bail works nicely in that it still allows an 'early exit' in an error scenario - it('should not exit even in error scenario if called with --no-exit', function (done) { - done(new Error('failure')); - }); - - it('should take a long time to exit if called with --no-exit', function (done) { - done(); - setTimeout(function () { - console.log('all done'); - }, 2500); - }); - - it('should kill all processes when SIGINT received', function () { - // uncomment to test - // while (true) {} - }); -}); diff --git a/test/misc/many.spec.js b/test/misc/many.spec.js deleted file mode 100644 index d2297767dd..0000000000 --- a/test/misc/many.spec.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -// Useful for testing SIGINT handler -// use env.big_number to tune iterations so that you have time to ctrl+c - -describe('a load of tests', function () { - it('should fail the first test', function () { - throw new Error('this should appear in the summary'); - }); - - var iterations = (process.env.big_number || 1e7); - function work () { - var a = 0; - for (var i = 0; i < iterations; ++i) { - a += i; - } - return a; - } - - function addTest () { - it('should pass test ' + i, function () { - work(); - }); - } - - for (var i = 0; i < 500; ++i) { - addTest(); - } -}); diff --git a/test/misc/nontty.spec.js b/test/misc/nontty.spec.js deleted file mode 100644 index ea57b9733f..0000000000 --- a/test/misc/nontty.spec.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -describe('tests for non-tty', function () { - it('should pass', function () { - - }); - - it('should fail', function () { - throw new Error('oh noes'); - }); -});