Skip to content

Commit 35a244e

Browse files
committed
test: add variable for at limit
1 parent b52c17c commit 35a244e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/builders/__tests__/components/selectMenu.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const selectMenu = () => new StringSelectMenuBuilder();
66
const selectMenuOption = () => new StringSelectMenuOptionBuilder();
77

88
const longStr = 'a'.repeat(256);
9+
const selectMenuOptionLabelAtLimit = 'a'.repeat(100);
910
const selectMenuOptionLabelAboveLimit = 'a'.repeat(101);
1011
const selectMenuOptionValueAboveLimit = 'a'.repeat(101);
1112
const selectMenuOptionDescriptionAboveLimit = 'a'.repeat(101);
@@ -56,7 +57,7 @@ describe('Select Menu Components', () => {
5657
expect(() => selectMenu().setDisabled()).not.toThrowError();
5758
expect(() => selectMenu().setPlaceholder('description')).not.toThrowError();
5859
const option = selectMenuOption()
59-
.setLabel('a'.repeat(100))
60+
.setLabel(selectMenuOptionLabelAtLimit)
6061
.setValue('test')
6162
.setDefault(true)
6263
.setEmoji({ name: 'test' })

0 commit comments

Comments
 (0)