Skip to content

Commit 8471adb

Browse files
adding test
1 parent 7481386 commit 8471adb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

cmd/pokemon/pokemon_test.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ func TestPokemonCommand(t *testing.T) {
3232
args: []string{"pokemon", "--help"},
3333
expectedOutput: utils.LoadGolden(t, "pokemon_help.golden"),
3434
},
35+
{
36+
name: "Pokemon no flags with dual type",
37+
args: []string{"pokemon", "victini"},
38+
expectedOutput: utils.LoadGolden(t, "pokemon_no_flags_dual_type.golden"),
39+
expectedError: true,
40+
},
3541
{
3642
name: "Pokemon abilities flag",
3743
args: []string{"pokemon", "metagross", "--abilities"},
@@ -65,11 +71,6 @@ func TestPokemonCommand(t *testing.T) {
6571
args: []string{"pokemon", "toxicroak", "--stats"},
6672
expectedOutput: utils.LoadGolden(t, "pokemon_stats.golden"),
6773
},
68-
{
69-
name: "Pokemon typed flags",
70-
args: []string{"pokemon", "armarouge", "--types"},
71-
expectedOutput: utils.LoadGolden(t, "pokemon_types.golden"),
72-
},
7374
}
7475

7576
for _, tt := range tests {

0 commit comments

Comments
 (0)