blob: 2530eec7832861f74eeae530ecf593e69ceb4b59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
'use strict';
describe('spec 1', function () {
before(function (done) {
console.log('before');
process.nextTick(function () {
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');
});
});
|