Merge PR #5920: Fix validate cmd bug

This commit is contained in:
colin axner
2020-04-04 14:24:11 -04:00
committed by GitHub
parent 7f78e61b93
commit dfbc6cd81b
2 changed files with 30 additions and 9 deletions
+2
View File
@@ -41,6 +41,8 @@ func TestValidateCmd(t *testing.T) {
{"no command provided", []string{}, false},
{"help flag", []string{"commission", "--help"}, false}, // nolint: misspell
{"shorthand help flag", []string{"commission", "-h"}, false}, // nolint: misspell
{"flag only, no command provided", []string{"--gas", "1000atom"}, false},
{"flag and misspelled command", []string{"--gas", "1000atom", "comission"}, true}, // nolint: misspell
}
for _, tt := range tests {