Skip to content

Commit e3522b3

Browse files
updating tests
1 parent 214b978 commit e3522b3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmd/ability/ability_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ func TestAbilityCommand(t *testing.T) {
4848
expectedOutput: utils.LoadGolden(t, "ability_misspelled.golden"),
4949
wantError: true,
5050
},
51+
{
52+
name: "Ability command: --pokemon flag",
53+
args: []string{"ability", "anger-point", "--pokemon"},
54+
expectedOutput: utils.LoadGolden(t, "ability_flag_pokemon.golden"),
55+
},
5156
}
5257

5358
for _, tt := range tests {
@@ -56,7 +61,7 @@ func TestAbilityCommand(t *testing.T) {
5661
os.Args = append([]string{"poke-cli"}, tt.args...)
5762
defer func() { os.Args = originalArgs }()
5863

59-
output := AbilityCommand()
64+
output, _ := AbilityCommand()
6065
cleanOutput := styling.StripANSI(output)
6166

6267
assert.Equal(t, tt.expectedOutput, cleanOutput, "Output should match expected")

0 commit comments

Comments
 (0)