MCPcopy
hub / github.com/codeceptjs/CodeceptJS / waitForFail

Method waitForFail

test/data/sandbox/retry_helper.js:8–10  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

6 }
7
8 waitForFail(fn) {
9 if (fn()) throw new Error('ups, error');
10 }
11
12 asyncStep() {
13 return new Promise(resolve => {

Callers 1

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected