Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
readline: fix test so it tests aborting a question with both ctrl+C a…
…nd ctrl+D
  • Loading branch information
DanielVenable committed Jan 29, 2025
commit 30387cf01b5f064deb7b5187b7b5f4043c9603b0
4 changes: 2 additions & 2 deletions test/parallel/test-readline-promises-interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -951,12 +951,12 @@ for (let i = 0; i < 12; i++) {
rli.close();
}

// Aborting a question with ctrl+D
// Aborting a question with ctrl+C
{
const [rli, fi] = getInterface({ terminal: true });
assert.rejects(rli.question('hello?'), { name: 'AbortError' })
.then(common.mustCall());
fi.emit('keypress', '.', { ctrl: true, name: 'd' });
fi.emit('keypress', '.', { ctrl: true, name: 'c' });
}

// Aborting a question with ctrl+D
Expand Down