MCPcopy Index your code
hub / github.com/nodejs/node / testCompletion

Function testCompletion

test/parallel/test-repl-tab-complete-computed-props.js:8–15  ·  view source on GitHub ↗
(replServer, { input, expectedCompletions })

Source from the content-addressed store, hash-verified

6const assert = require('assert');
7
8function testCompletion(replServer, { input, expectedCompletions }) {
9 replServer.complete(
10 input,
11 common.mustCall((_error, data) => {
12 assert.deepStrictEqual(data, [expectedCompletions, input]);
13 }),
14 );
15};
16
17describe('REPL tab object completion on computed properties', () => {
18 describe('simple string cases', () => {

Calls 1

completeMethod · 0.45

Tested by

no test coverage detected