| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f515156 commit 5fc0f5e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,6 +63,12 @@ function assertCursorRowsAndCols(rli, rows, cols) { | |||
| 63 | 63 | assert.strictEqual(cursorPos.cols, cols); | |
| 64 | 64 | } | |
| 65 | 65 | ||
| 66 | + { | ||
| 67 | + const input = new FakeInput(); | ||
| 68 | + const rl = readline.Interface({ input }); | ||
| 69 | + assert(rl instanceof readline.Interface); | ||
| 70 | + } | ||
| 71 | + | ||
| 66 | 72 | [ | |
| 67 | 73 | undefined, | |
| 68 | 74 | 50, | |
@@ -657,6 +663,13 @@ function assertCursorRowsAndCols(rli, rows, cols) { | |||
| 657 | 663 | rli.close(); | |
| 658 | 664 | } | |
| 659 | 665 | ||
| 666 | + // Close readline interface | ||
| 667 | + { | ||
| 668 | + const [rli, fi] = getInterface({ terminal: true, prompt: '' }); | ||
| 669 | + fi.emit('keypress', '.', { ctrl: true, name: 'c' }); | ||
| 670 | + assert(rli.closed); | ||
| 671 | + } | ||
| 672 | + | ||
| 660 | 673 | // Multi-line input cursor position | |
| 661 | 674 | { | |
| 662 | 675 | const [rli, fi] = getInterface({ terminal: true, prompt: '' }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments