diff options
Diffstat (limited to 'tests/lib/mocha-3.1.2/test/integration/fixtures/hooks/before-hook-error.fixture.js')
-rw-r--r-- | tests/lib/mocha-3.1.2/test/integration/fixtures/hooks/before-hook-error.fixture.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/lib/mocha-3.1.2/test/integration/fixtures/hooks/before-hook-error.fixture.js b/tests/lib/mocha-3.1.2/test/integration/fixtures/hooks/before-hook-error.fixture.js new file mode 100644 index 0000000000..547e54a243 --- /dev/null +++ b/tests/lib/mocha-3.1.2/test/integration/fixtures/hooks/before-hook-error.fixture.js @@ -0,0 +1,19 @@ +'use strict'; + +describe('spec 1', function () { + before(function () { + console.log('before'); + throw new Error('before hook error'); + }); + it('should not be called because of error in before hook', function () { + console.log('test 1'); + }); + it('should not be called because of error in before 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'); + }); +}); |