fix: update test case

This commit is contained in:
gerrard 2022-08-14 21:11:58 +08:00 committed by Dan Buch
parent 9de6fa4ded
commit 909232502b
Signed by: meatballhat
GPG Key ID: A12F782281063434

View File

@ -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"},
},
}