Debian Codegraph @

test/integration/fixtures/retries/early-pass.fixture.js

raw symbols SCIP
1 'use strict';
2 const assert = require('assert');
3
4 describe('retries', function () {
5 this.retries(1);
6 var times = 0;
7 var self = this;
8
9 it('should pass after 1 retry', function () {
10 times++;
11 if (times !== 2) {
12 throw new Error('retry error ' + times);
13 }
14 });
15
16 it('check for updated `suite.tests`', function() {
17 assert.strictEqual(self.tests[0]._currentRetry, 1);
18 assert.ok(self.tests[0]._retriedTest);
19 assert.strictEqual(self.tests[0].state, 'passed');
20 })
21 });