Skip to content

Commit

Permalink
fix(SelectMenu): set placeholder max to 150
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Feb 24, 2022
1 parent 8203c5d commit b3af5ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/builders/__tests__/components/selectMenu.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { SelectMenuComponent, SelectMenuOption } from '../../src/index';
const selectMenu = () => new SelectMenuComponent();
const selectMenuOption = () => new SelectMenuOption();

const longStr =
'looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong';
const longStr = 'a'.repeat(256);

const selectMenuOptionData: APISelectMenuOption = {
label: 'test',
Expand Down
2 changes: 1 addition & 1 deletion packages/builders/src/components/Assertions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const buttonLabelValidator = z.string().nonempty().max(80);

export const buttonStyleValidator = z.number().int().min(ButtonStyle.Primary).max(ButtonStyle.Link);

export const placeholderValidator = z.string().max(100);
export const placeholderValidator = z.string().max(150);
export const minMaxValidator = z.number().int().min(0).max(25);

export const optionsValidator = z.object({}).array().nonempty();
Expand Down

0 comments on commit b3af5ba

Please sign in to comment.