Skip to content

Commit fe5c049

Browse files
committed
fix failing tests
1 parent 42abbce commit fe5c049

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

codegens/postman-cli/lib/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ self = module.exports = {
360360
description: 'Select the character used to indent lines of code'
361361
},
362362
{
363-
name: 'Indentation count',
363+
name: 'Set indentation count',
364364
id: 'indentCount',
365365
type: 'positiveInteger',
366366
default: 2,
@@ -371,14 +371,14 @@ self = module.exports = {
371371
id: 'multiLine',
372372
type: 'boolean',
373373
default: true,
374-
description: 'Split Postman CLI command across multiple lines'
374+
description: 'Split cURL command across multiple lines'
375375
},
376376
{
377377
name: 'Use long form options',
378378
id: 'longFormat',
379379
type: 'boolean',
380380
default: true,
381-
description: 'Use the long form for Postman CLI options (--header instead of -H)'
381+
description: 'Use the long form for cURL options (--header instead of -H)'
382382
},
383383
{
384384
name: 'Line continuation character',
@@ -396,7 +396,7 @@ self = module.exports = {
396396
type: 'enum',
397397
default: 'single',
398398
description: 'String denoting the quote type to use (single or double) for URL ' +
399-
'(Use double quotes when running Postman CLI in cmd.exe and single quotes for the rest)'
399+
'(Use double quotes when running curl in cmd.exe and single quotes for the rest)'
400400
},
401401
{
402402
name: 'Set request timeout (in seconds)',

test/codegen/structure.test.js

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,31 @@ const expectedOptions = {
9494
default: 'single',
9595
description: 'String denoting the quote type to use (single or double) for URL ' +
9696
'(Use double quotes when running curl in cmd.exe and single quotes for the rest)'
97+
},
98+
maxRedirects: {
99+
name: 'Maximum number of redirects',
100+
type: 'positiveInteger',
101+
default: 0,
102+
description: 'Set the maximum number of redirects to follow, defaults to 0 (unlimited)'
103+
},
104+
quiet: {
105+
name: 'Use Quiet Mode',
106+
type: 'boolean',
107+
default: false,
108+
description: 'Display the requested data without showing any extra output.'
109+
},
110+
debug: {
111+
name: 'Use Debug Mode',
112+
type: 'boolean',
113+
default: false,
114+
description: 'Show detailed execution information including retry attempts, redirects, and timing breakdowns.'
115+
},
116+
lineContinuationCharacter: {
117+
name: 'Line continuation character',
118+
type: 'enum',
119+
default: '\\',
120+
description: 'Set a character used to mark the continuation of a statement on the next line ' +
121+
'(generally, \\ for OSX/Linux, ^ for Windows cmd and ` for Powershell)'
97122
}
98123
},
99124
// Standard array of ids that should be used for options ids. Any new option should be updated here.
@@ -116,7 +141,10 @@ const expectedOptions = {
116141
'asyncAwaitEnabled',
117142
'quoteType',
118143
'asyncType',
119-
'ignoreWarnings'
144+
'ignoreWarnings',
145+
'maxRedirects',
146+
'quiet',
147+
'debug'
120148
],
121149
CODEGEN_ABS_PATH = `./codegens/${codegen}`;
122150
describe('Code-gen repository ' + codegen, function () {

0 commit comments

Comments
 (0)