Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aswasif007 committed Jan 12, 2024
1 parent 4c227b1 commit 02ca1ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions __tests__/lib/cli/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ describe( 'utils/cli/format', () => {
expected: [ '"{\\"json\\":broken json with spaces}"' ],
},
{
input: [ '--foo=\'bar1 "bar2" "bar3"\'' ],
expected: [ '--foo=\'bar1 "bar2" "bar3"\'' ],
input: [ '--foo=bar1 "bar2" "bar3"' ],
expected: [ '--foo="bar1 \\"bar2\\" \\"bar3\\""' ],
},
{
input: [ '--foo', '\'bar1 "bar2" "bar3"\'' ],
expected: [ '--foo', '\'bar1 "bar2" "bar3"\'' ],
input: [ '--foo', 'bar1 "bar2" "bar3"' ],
expected: [ '--foo', '"bar1 \\"bar2\\" \\"bar3\\""' ],
},
] )( 'should requote args when needed - %o', ( { input, expected } ) => {
const result = requoteArgs( input );
Expand Down

0 comments on commit 02ca1ac

Please sign in to comment.