diff options
Diffstat (limited to 'tests/lib/mocha-3.1.0/test/acceptance/misc/exit.spec.js')
-rw-r--r-- | tests/lib/mocha-3.1.0/test/acceptance/misc/exit.spec.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/lib/mocha-3.1.0/test/acceptance/misc/exit.spec.js b/tests/lib/mocha-3.1.0/test/acceptance/misc/exit.spec.js new file mode 100644 index 0000000000..113e392300 --- /dev/null +++ b/tests/lib/mocha-3.1.0/test/acceptance/misc/exit.spec.js @@ -0,0 +1,18 @@ +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) {} + }); +}) |