Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Nov 26, 2024
1 parent c353e1c commit c4fa85a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/bin/vip-logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ describe( 'getLogs', () => {

expect( exit.withError ).toHaveBeenCalledTimes( 1 );
expect( exit.withError ).toHaveBeenCalledWith(
'Invalid format: jso. The supported formats are: csv, json, table.'
'Invalid format: jso. The supported formats are: csv, json, table, text.'
);

expect( logsLib.getRecentLogs ).not.toHaveBeenCalled();
Expand Down
6 changes: 5 additions & 1 deletion src/bin/vip-logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,11 @@ command( {
`The maximum number of entries to return. Accepts an integer value between 1 and 5000 (defaults to ${ LIMIT_DEFAULT }).`
)
.option( 'follow', 'Output new entries as they are generated.' )
.option( 'format', 'Render output in a particular format. Accepts “csv”, “json”, and “text”.', 'table' )
.option(
'format',
'Render output in a particular format. Accepts “csv”, “json”, and “text”.',
'table'
)
.examples( [
{
usage: 'vip @example-app.production logs',
Expand Down

0 comments on commit c4fa85a

Please sign in to comment.