From 6a97e43ff69795c53c1b8dff63fc6a5cbdba8ca8 Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Tue, 18 Apr 2017 20:43:51 +0200 Subject: update mocha to 3.1.2 (#11625) --- .../fixtures/hooks/after-hook-error.fixture.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/lib/mocha-3.1.2/test/integration/fixtures/hooks/after-hook-error.fixture.js (limited to 'tests/lib/mocha-3.1.2/test/integration/fixtures/hooks/after-hook-error.fixture.js') diff --git a/tests/lib/mocha-3.1.2/test/integration/fixtures/hooks/after-hook-error.fixture.js b/tests/lib/mocha-3.1.2/test/integration/fixtures/hooks/after-hook-error.fixture.js new file mode 100644 index 0000000000..7fc258f46d --- /dev/null +++ b/tests/lib/mocha-3.1.2/test/integration/fixtures/hooks/after-hook-error.fixture.js @@ -0,0 +1,19 @@ +'use strict'; + +describe('spec 1', function () { + after(function () { + console.log('after'); + throw new Error('after hook error'); + }); + it('should be called because error is in after hook', function () { + console.log('test 1'); + }); + it('should be called because error is in after hook', function () { + console.log('test 2'); + }); +}); +describe('spec 2', function () { + it('should be called, because hook error was in a sibling suite', function () { + console.log('test 3'); + }); +}); -- cgit v1.2.3