Debian Codegraph @

test/integration/fixtures/retries/hooks.fixture.js

raw symbols SCIP
1 'use strict';
2
3 describe('retries', function () {
4 var times = 0;
5 before(function () {
6 console.log('before');
7 });
8
9 after(function () {
10 console.log('after');
11 });
12
13 beforeEach(function () {
14 console.log('before each', times);
15 });
16
17 afterEach(function () {
18 console.log('after each', times);
19 });
20
21 it('should allow override and run appropriate hooks', function () {
22 this.retries(4);
23 console.log('TEST', times);
24 times++;
25 throw new Error('retry error');
26 });
27 });