@@ -3,6 +3,7 @@ package flags
33import (
44 "bytes"
55 "fmt"
6+ "github.com/digitalghost-dev/poke-cli/styling"
67 "github.com/stretchr/testify/assert"
78 "os"
89 "reflect"
@@ -73,7 +74,7 @@ Hidden Ability: Chlorophyll
7374`
7475
7576 // Assert the actual output matches the expected output
76- actualOutput := stripANSI (output .String ())
77+ actualOutput := styling . StripANSI (output .String ())
7778
7879 assert .Equal (t , expectedOutput , actualOutput , "Output should contain data for the abilities flag" )
7980}
@@ -103,7 +104,7 @@ func TestImageFlag(t *testing.T) {
103104 assert .NoError (t , err )
104105
105106 // Validate that the output contains some expected patterns
106- actualOutput := stripANSI (output .String ())
107+ actualOutput := styling . StripANSI (output .String ())
107108
108109 // Since the output is an ASCII image, we can't hardcode the expected output,
109110 // but we can check that it contains some general expected structure
@@ -177,7 +178,7 @@ Total 318
177178`
178179
179180 // Assert output contains the expected header and typing information
180- actualOutput := stripANSI (output .String ())
181+ actualOutput := styling . StripANSI (output .String ())
181182
182183 assert .Equal (t , expectedOutput , actualOutput , "Output should contain data for the stats flag" )
183184
@@ -215,7 +216,7 @@ Type 2: Poison
215216`
216217
217218 // Assert output contains the expected header and typing information
218- actualOutput := stripANSI (output .String ())
219+ actualOutput := styling . StripANSI (output .String ())
219220
220221 assert .Equal (t , expectedOutput , actualOutput , "Output should contain data for the types flag" )
221222}
0 commit comments