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

Method smallPromise

test/data/sandbox/within_helper.js:22–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 }
21
22 smallPromise() {
23 return new Promise((resolve) => {
24 setTimeout(() => {
25 resolve('result');
26 }, 100);
27 }).then(() => output.step(new Step(this.constructor.name, 'small Promise was finished')));
28 }
29
30 errorStep() {
31 throw new Error('ups, error');

Callers 1

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected