Skip to content

Commit

Permalink
Update snapshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Feb 11, 2024
1 parent c9d9ee7 commit cd6ed78
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
18 changes: 9 additions & 9 deletions packages/cli/tests/components/__snapshots__/Input.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@

exports[`Input > adding characters > can add subsequent characters 1`] = `"? Name? abc "`;

exports[`Input > adding characters > can add to the beginning 1`] = `"[36m?[39m [1mName?[22m foo[46m[30m [39m[49m"`;
exports[`Input > adding characters > can add to the beginning 1`] = `"[36m?[39m [1mName?[22m f"`;

exports[`Input > adding characters > can add to the beginning 2`] = `"[36m?[39m [1mName?[22m bar[46m[30mf[39m[49moo"`;
exports[`Input > adding characters > can add to the beginning 2`] = `"[36m?[39m [1mName?[22m bar"`;

exports[`Input > adding characters > can add to the beginning and end 1`] = `"[36m?[39m [1mName?[22m foo[46m[30m [39m[49m"`;
exports[`Input > adding characters > can add to the beginning and end 1`] = `"[36m?[39m [1mName?[22m f"`;

exports[`Input > adding characters > can add to the beginning and end 2`] = `"[36m?[39m [1mName?[22m bar[46m[30mf[39m[49moo"`;
exports[`Input > adding characters > can add to the beginning and end 2`] = `"[36m?[39m [1mName?[22m bar"`;

exports[`Input > adding characters > can add to the beginning and end 3`] = `"? Name? barfooqux "`;

exports[`Input > adding characters > can add to the middle 1`] = `"[36m?[39m [1mName?[22m foobar[46m[30m [39m[49m"`;
exports[`Input > adding characters > can add to the middle 1`] = `"[36m?[39m [1mName?[22m f"`;

exports[`Input > adding characters > can add to the middle 2`] = `"? Name? fooquxbar"`;

exports[`Input > adding characters > renders value and calls \`onChange\` 1`] = `"[36m?[39m [1mName?[22m custom[46m[30m [39m[49m"`;
exports[`Input > adding characters > renders value and calls \`onChange\` 1`] = `"[36m?[39m [1mName?[22m c"`;

exports[`Input > removing characters > can remove characters from the end 1`] = `"[36m?[39m [1mName?[22m foo[46m[30m [39m[49m"`;
exports[`Input > removing characters > can remove characters from the end 1`] = `"[36m?[39m [1mName?[22m f"`;

exports[`Input > removing characters > can remove characters from the end 2`] = `"[36m?[39m [1mName?[22m f[46m[30mo[39m[49m"`;
exports[`Input > removing characters > can remove characters from the end 2`] = `"[36m?[39m [1mName?[22m fo[46m[30m [39m[49m"`;

exports[`Input > removing characters > can remove characters from the middle 1`] = `"[36m?[39m [1mName?[22m f[46m[30mo[39m[49mbar"`;
exports[`Input > removing characters > can remove characters from the middle 1`] = `"[36m?[39m [1mName?[22m fo[46m[30mb[39m[49mar"`;

exports[`Input > removing characters > does nothing if no value 1`] = `"? Name?  "`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`PasswordInput > renders default value as stars 1`] = `"? Password? ****"`;

exports[`PasswordInput > renders entered text as stars 1`] = `"[36m?[39m [1mPassword?[22m ***********[46m[30m [39m[49m"`;
exports[`PasswordInput > renders entered text as stars 1`] = `"[36m?[39m [1mPassword?[22m *"`;

exports[`PasswordInput > renders label by default 1`] = `"? Password?  "`;

Expand Down
4 changes: 4 additions & 0 deletions packages/cli/tests/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { SelectOptionLike } from '../src/react';

// const isWindows = process.platform === 'win32';

export const KEYS = {
// backspace: isWindows ? '\u0008' : '\u007F',
// delete: isWindows ? '\u007F' : '\u001B[3~',
backspace: '\u0008',
delete: '\u007F',
down: '\u001B[B',
Expand Down

0 comments on commit cd6ed78

Please sign in to comment.