MCPcopy Create free account
hub / github.com/nodejs/node / testNext

Function testNext

test/parallel/test-repl-tab-complete-unary-expressions.js:74–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 let testIndex = 0;
73
74 function testNext() {
75 if (testIndex >= unaryOperators.length) {
76 replServer.close();
77 done();
78 return;
79 }
80
81 const testCase = unaryOperators[testIndex++];
82 replServer.complete(
83 testCase,
84 common.mustSucceed((completions) => {
85 assert.strictEqual(completions[1], 'globalThis');
86 testNext();
87 })
88 );
89 }
90
91 testNext();
92 });

Calls 3

doneFunction · 0.70
closeMethod · 0.65
completeMethod · 0.45

Tested by

no test coverage detected