Skip to content

Commit

Permalink
Update snapshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Feb 10, 2024
1 parent 7d6730d commit 7e252c9
Show file tree
Hide file tree
Showing 5 changed files with 210 additions and 208 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@
exports[`Confirm > can customize yes/no 1`] = `"? Confirm? (t/F)"`;

exports[`Confirm > errors for incorrectly cased input value 1`] = `
"[31m✖[39m [1mConfirm?[22m [90m(y/N)[39m
"[31mx[39m [1mConfirm?[22m [90m(y/N)[39m
Please select "y" or "N""
`;

exports[`Confirm > errors for invalid input value 1`] = `
"[31m✖[39m [1mConfirm?[22m [90m(y/N)[39m
"[31mx[39m [1mConfirm?[22m [90m(y/N)[39m
Please select "y" or "N""
`;

exports[`Confirm > errors with custom message 1`] = `
"[31m✖[39m [1mConfirm?[22m [90m(y/N)[39m
"[31mx[39m [1mConfirm?[22m [90m(y/N)[39m
Wrong value yo"
`;

exports[`Confirm > falsy > renders success state 1`] = `"[32m[39m [1mConfirm?[22m [35mfalse[39m"`;
exports[`Confirm > falsy > renders success state 1`] = `"[32m^[39m [1mConfirm?[22m [35mfalse[39m"`;

exports[`Confirm > renders label with yes/no by default 1`] = `"? Confirm? (y/N)"`;

exports[`Confirm > truthy > renders success state 1`] = `"[32m[39m [1mConfirm?[22m [35mtrue[39m"`;
exports[`Confirm > truthy > renders success state 1`] = `"[32m^[39m [1mConfirm?[22m [35mtrue[39m"`;
136 changes: 68 additions & 68 deletions packages/cli/tests/components/__snapshots__/MultiSelect.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,38 @@
exports[`MultiSelect > dividers > displays at the beginning > can cycle backwards past divider 1`] = `
"? Favorite color?
────
[90m◌[39m one
[90m◌[39m two
[90mo[39m one
[90mo[39m two
● three"
`;

exports[`MultiSelect > dividers > displays at the beginning > renders divider first and highlights first non-divider option 1`] = `
"? Favorite color?
────
● one
[90m◌[39m two
[90m◌[39m three"
[90mo[39m two
[90mo[39m three"
`;

exports[`MultiSelect > dividers > displays at the end > can cycle forwards past divider 1`] = `
"? Favorite color?
[90m◌[39m one
[90mo[39m one
● two
[90m◌[39m three
[90mo[39m three
────"
`;

exports[`MultiSelect > dividers > displays at the end > renders divider last and highlights first non-divider option 1`] = `
"? Favorite color?
● one
[90m◌[39m two
[90m◌[39m three
[90mo[39m two
[90mo[39m three
────"
`;

exports[`MultiSelect > dividers > skips dividers while cycling until a value is found 1`] = `
"? Favorite color?
[90m◌[39m one
[90mo[39m one
────
────
────
Expand All @@ -44,44 +44,44 @@ exports[`MultiSelect > dividers > skips dividers while cycling until a value is

exports[`MultiSelect > navigation > can cycle backwards 1`] = `
"? Favorite color?
[90m◌[39m one
[90m◌[39m two
[90mo[39m one
[90mo[39m two
● three"
`;

exports[`MultiSelect > navigation > can cycle forwards 1`] = `
"? Favorite color?
[90m◌[39m one
[90mo[39m one
● two
[90m◌[39m three"
[90mo[39m three"
`;

exports[`MultiSelect > navigation > can jump between last and first 1`] = `
"? Favorite color?
[90m◌[39m one
[90m◌[39m two
[90mo[39m one
[90mo[39m two
● three"
`;

exports[`MultiSelect > navigation > can jump between last and first 2`] = `
"? Favorite color?
● one
[90m◌[39m two
[90m◌[39m three"
[90mo[39m two
[90mo[39m three"
`;

exports[`MultiSelect > navigation > displays info color when highlighted 1`] = `
"? Favorite color?
● one
[90m◌[39m two
[90m◌[39m three"
[90mo[39m two
[90mo[39m three"
`;

exports[`MultiSelect > navigation > displays notice color when selected 1`] = `
"? Favorite color? one
● one
● two
[90m◌[39m three"
[90mo[39m three"
`;

exports[`MultiSelect > renders label by default 1`] = `"? Favorite color?"`;
Expand All @@ -90,95 +90,95 @@ exports[`MultiSelect > renders options and dividers using options 1`] = `
"? Favorite color?
B
● Black
[90m◌[39m Blue
[90m◌[39m Brown
[90mo[39m Blue
[90mo[39m Brown
C
[90m◌[39m Cyan
[90mo[39m Cyan
G
[90m◌[39m Gray
[90m◌[39m Green
[90mo[39m Gray
[90mo[39m Green
O
[90m◌[39m Orange
[90mo[39m Orange
P
[90m◌[39m Purple
[90mo[39m Purple
R
[90m◌[39m Red
[90mo[39m Red
W
[90m◌[39m White
[90mo[39m White
Y
[90m◌[39m Yellow"
[90mo[39m Yellow"
`;

exports[`MultiSelect > renders options and dividers using strings 1`] = `
"? Favorite color?
B
● black
[90m◌[39m blue
[90m◌[39m brown
[90mo[39m blue
[90mo[39m brown
C
[90m◌[39m cyan
[90mo[39m cyan
G
[90m◌[39m gray
[90m◌[39m green
[90mo[39m gray
[90mo[39m green
O
[90m◌[39m orange
[90mo[39m orange
P
[90m◌[39m purple
[90mo[39m purple
R
[90m◌[39m red
[90mo[39m red
W
[90m◌[39m white
[90mo[39m white
Y
[90m◌[39m yellow"
[90mo[39m yellow"
`;

exports[`MultiSelect > renders options using options 1`] = `
"? Favorite color?
● Black
[90m◌[39m Blue
[90m◌[39m Brown
[90m◌[39m Cyan
[90m◌[39m Gray
[90m◌[39m Green
[90m◌[39m Orange
[90m◌[39m Purple
[90m◌[39m Red
[90m◌[39m White
[90m◌[39m Yellow"
[90mo[39m Blue
[90mo[39m Brown
[90mo[39m Cyan
[90mo[39m Gray
[90mo[39m Green
[90mo[39m Orange
[90mo[39m Purple
[90mo[39m Red
[90mo[39m White
[90mo[39m Yellow"
`;

exports[`MultiSelect > renders options using strings 1`] = `
"? Favorite color?
● black
[90m◌[39m blue
[90m◌[39m brown
[90m◌[39m cyan
[90m◌[39m gray
[90m◌[39m green
[90m◌[39m orange
[90m◌[39m purple
[90m◌[39m red
[90m◌[39m white
[90m◌[39m yellow"
[90mo[39m blue
[90mo[39m brown
[90mo[39m cyan
[90mo[39m gray
[90mo[39m green
[90mo[39m orange
[90mo[39m purple
[90mo[39m red
[90mo[39m white
[90mo[39m yellow"
`;

exports[`MultiSelect > selection > calls \`onSubmit\` with selected values when hitting enter 1`] = `
"[32m[39m [1mFavorite color?[22m [35mblack[39m
"[32m^[39m [1mFavorite color?[22m [35mblack[39m
B
● Black
[90m◌[39m Blue
[90m◌[39m Brown
[90mo[39m Blue
[90mo[39m Brown
C
8 more"
`;

exports[`MultiSelect > selection > doesnt call \`onSubmit\` if validation fails 1`] = `
"[31m✖[39m [1mFavorite color?[22m
"[31mx[39m [1mFavorite color?[22m
Failed validation
B
● Black
[90m◌[39m Blue
[90m◌[39m Brown
[90mo[39m Blue
[90mo[39m Brown
C
8 more"
`;
Expand All @@ -187,8 +187,8 @@ exports[`MultiSelect > selection > selects and displays a value when hitting spa
"? Favorite color? black
B
● Black
[90m◌[39m Blue
[90m◌[39m Brown
[90mo[39m Blue
[90mo[39m Brown
C
8 more"
`;
Loading

0 comments on commit 7e252c9

Please sign in to comment.