File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/builders/__tests__/components Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ const selectMenu = () => new StringSelectMenuBuilder();
66const selectMenuOption = ( ) => new StringSelectMenuOptionBuilder ( ) ;
77
88const longStr = 'a' . repeat ( 256 ) ;
9+ const selectMenuOptionLabelAtLimit = 'a' . repeat ( 100 ) ;
910const selectMenuOptionLabelAboveLimit = 'a' . repeat ( 101 ) ;
1011const selectMenuOptionValueAboveLimit = 'a' . repeat ( 101 ) ;
1112const 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' } )
You can’t perform that action at this time.
0 commit comments