Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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.js
File · 0.80
Calls
1
log
Method · 0.80
Tested by
no test coverage detected