We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 231f24e commit e9e56d7Copy full SHA for e9e56d7
packages/prompts/test/limit-options.test.ts
@@ -242,7 +242,7 @@ describe('limitOptions', () => {
242
expect(result).toEqual(['Item 1', '-- Item 2 --', 'Item 3']);
243
});
244
245
- test('respects custom rowPadding for multiline messages', async () => {
+ test('respects custom rowPadding', async () => {
246
options.options = [
247
{ value: 'Item 1' },
248
{ value: 'Item 2' },
@@ -256,7 +256,6 @@ describe('limitOptions', () => {
256
{ value: 'Item 10' },
257
];
258
output.rows = 12;
259
- // Simulate a multiline message that takes 6 lines (e.g., title bar + 4-line message + footer)
260
options.rowPadding = 6;
261
// Available rows for options = 12 - 6 = 6
262
const result = limitOptions(options);
0 commit comments