Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix tests #2126

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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