@@ -166,7 +166,7 @@ describe("options", () => {
166
166
process . argv . push ( "--test1" ) ;
167
167
process . argv . push ( "value" ) ;
168
168
const options = createOptions ( testInjector ) ;
169
- options . validateOptions ( { test1 : { type : OptionType . String } } ) ;
169
+ options . validateOptions ( { test1 : { type : OptionType . String , hasSensitiveValue : false } } ) ;
170
170
process . argv . pop ( ) ;
171
171
process . argv . pop ( ) ;
172
172
assert . isFalse ( isExecutionStopped ) ;
@@ -175,7 +175,7 @@ describe("options", () => {
175
175
it ( "does not break execution when valid commandSpecificOptions are passed and user specifies globally valid option" , ( ) => {
176
176
const options = createOptions ( testInjector ) ;
177
177
process . argv . push ( "--version" ) ;
178
- options . validateOptions ( { test1 : { type : OptionType . String } } ) ;
178
+ options . validateOptions ( { test1 : { type : OptionType . String , hasSensitiveValue : false } } ) ;
179
179
process . argv . pop ( ) ;
180
180
assert . isFalse ( isExecutionStopped ) ;
181
181
} ) ;
@@ -253,7 +253,7 @@ describe("options", () => {
253
253
it ( "does not break execution when dashed option with two dashes is passed" , ( ) => {
254
254
process . argv . push ( "--special-dashed-v" ) ;
255
255
const options = createOptions ( testInjector ) ;
256
- options . validateOptions ( { specialDashedV : { type : OptionType . Boolean } } ) ;
256
+ options . validateOptions ( { specialDashedV : { type : OptionType . Boolean , hasSensitiveValue : false } } ) ;
257
257
process . argv . pop ( ) ;
258
258
assert . isFalse ( isExecutionStopped , "Dashed options should be validated in specific way. Make sure validation allows yargs specific behavior:" +
259
259
"Dashed options (special-dashed-v) are added to yargs.argv in two ways: special-dashed-v and specialDashedV" ) ;
0 commit comments