diff options
author | Stefan Giehl <stefan@piwik.org> | 2017-04-18 21:43:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-18 21:43:51 +0300 |
commit | 6a97e43ff69795c53c1b8dff63fc6a5cbdba8ca8 (patch) | |
tree | 5d3b8790c025ba8664a9fab1dbecfbb1f2b58dca /tests/lib/mocha-3.1.2/test/integration/fixtures/hooks/after-hook-error.fixture.js | |
parent | ac9d6ab9ee5cf80ad2a769d40004c20410dc1053 (diff) |
update mocha to 3.1.2 (#11625)
Diffstat (limited to 'tests/lib/mocha-3.1.2/test/integration/fixtures/hooks/after-hook-error.fixture.js')
-rw-r--r-- | tests/lib/mocha-3.1.2/test/integration/fixtures/hooks/after-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/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'); + }); +}); |