Skip to content

Commit e9e56d7

Browse files
dreyfus9243081j
andauthored
Apply suggestions from code review
Co-authored-by: James Garbutt <[email protected]>
1 parent 231f24e commit e9e56d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/prompts/test/limit-options.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ describe('limitOptions', () => {
242242
expect(result).toEqual(['Item 1', '-- Item 2 --', 'Item 3']);
243243
});
244244

245-
test('respects custom rowPadding for multiline messages', async () => {
245+
test('respects custom rowPadding', async () => {
246246
options.options = [
247247
{ value: 'Item 1' },
248248
{ value: 'Item 2' },
@@ -256,7 +256,6 @@ describe('limitOptions', () => {
256256
{ value: 'Item 10' },
257257
];
258258
output.rows = 12;
259-
// Simulate a multiline message that takes 6 lines (e.g., title bar + 4-line message + footer)
260259
options.rowPadding = 6;
261260
// Available rows for options = 12 - 6 = 6
262261
const result = limitOptions(options);

0 commit comments

Comments
 (0)