We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
question
1 parent 4e58ec4 commit 1f5baaaCopy full SHA for 1f5baaa
test/parallel/test-readline-interface.js
@@ -905,6 +905,18 @@ for (let i = 0; i < 12; i++) {
905
rli.close();
906
}
907
908
+ // Calling the question multiple times
909
+ {
910
+ const [rli] = getInterface({ terminal });
911
+ rli.question('foo?', common.mustCall((answer) => {
912
+ assert.strictEqual(answer, 'baz');
913
+ }));
914
+ rli.question('bar?', common.mustNotCall(() => {
915
916
+ rli.write('baz\n');
917
+ rli.close();
918
+ }
919
+
920
// Calling the promisified question
921
{
922
const [rli] = getInterface({ terminal });
0 commit comments