MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / failNTimes

Method failNTimes

examples/user_helper.js:11–16  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

9 }
10
11 failNTimes(n) {
12 this.i++
13 // this.i++;
14 console.log(this.i, n)
15 if (this.i < n) throw new Error('ups, error')
16 }
17
18 // add custom methods here
19 // If you need to access other helpers

Callers 1

checkout_test.jsFile · 0.80

Calls 1

logMethod · 0.80

Tested by

no test coverage detected