blob: 56d067fc05788f14031d39ee98bfcc2d7f74d3b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
'use strict';
describe('retries', function () {
var times = 0;
before(function () {
console.log('before');
});
after(function () {
console.log('after');
});
beforeEach(function () {
console.log('before each', times);
});
afterEach(function () {
console.log('after each', times);
});
it('should allow override and run appropriate hooks', function (done) {
this.timeout(200);
this.retries(2);
console.log('TEST', times);
if (++times < 3) {
return setTimeout(done, 300);
}
setTimeout(done, 50);
});
});
|