fix: update test case
This commit is contained in:
parent
9de6fa4ded
commit
909232502b
@ -557,11 +557,12 @@ func TestCheckRequiredFlags(t *testing.T) {
|
||||
},
|
||||
},
|
||||
{
|
||||
testCase: "required_flag_with_one_character",
|
||||
testCase: "required_flag_with_one_character",
|
||||
expectedAnError: true,
|
||||
expectedErrorContents: []string{"Required flag \"n\" not set"},
|
||||
flags: []Flag{
|
||||
&StringFlag{Name: "n", Required: true},
|
||||
},
|
||||
parseInput: []string{"--n", "asd"},
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user