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