blob: 9d28632fa3812b3c85cb9e8882fac8a3a7106982 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
describe('spec 1', function () {
afterEach(function () {
console.log('after');
throw new Error('after each hook error');
});
it('should be called because error is in after each hook', function () {
console.log('test 1');
});
it('should not be called', 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');
});
});
|