@@ -25,7 +25,7 @@ func TestPokemonCommand(t *testing.T) {
2525 name string
2626 args []string
2727 expectedOutput string
28- wantError bool
28+ expectedError bool
2929 }{
3030 {
3131 name : "Pokemon help flag" ,
@@ -43,10 +43,22 @@ func TestPokemonCommand(t *testing.T) {
4343 expectedOutput : utils .LoadGolden (t , "pokemon_image.golden" ),
4444 },
4545 {
46- name : "Pokemon invalid image flag" ,
46+ name : "Pokemon image flag missing size " ,
4747 args : []string {"pokemon" , "tryanitar" , "--image=" },
48- expectedOutput : utils .LoadGolden (t , "pokemon_invalid_image_flag.golden" ),
49- wantError : true ,
48+ expectedOutput : utils .LoadGolden (t , "pokemon_image_flag_missing_size.golden" ),
49+ expectedError : true ,
50+ },
51+ {
52+ name : "Pokemon image flag non-valid size" ,
53+ args : []string {"pokemon" , "floatzel" , "--image=xl" },
54+ expectedOutput : utils .LoadGolden (t , "pokemon_image_flag_non-valid_size.golden" ),
55+ expectedError : true ,
56+ },
57+ {
58+ name : "Pokemon image flag empty flag" ,
59+ args : []string {"pokemon" , "gastly" , "--" },
60+ expectedOutput : utils .LoadGolden (t , "pokemon_image_flag_empty_flag.golden" ),
61+ expectedError : true ,
5062 },
5163 {
5264 name : "Pokemon stats flag" ,
0 commit comments