Skip to content

Commit

Permalink
fix unit tests error
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Nov 2, 2020
1 parent 2a527f3 commit 2904452
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions color_test.go
Expand Up @@ -375,6 +375,8 @@ func TestColor256(t *testing.T) {

func TestStyle256(t *testing.T) {
is := assert.New(t)

ForceColor()
s := S256(192, 38)
s.Println("style 256 colored text")
is.Equal("\x1b[38;5;192;48;5;38m MSG \x1b[0m", s.Sprint(" MSG "))
Expand Down Expand Up @@ -565,6 +567,7 @@ func TestHexToRGB(t *testing.T) {
func TestRGBStyle(t *testing.T) {
is := assert.New(t)

ForceColor()
fg := RGB(20, 144, 234)
bg := RGB(234, 78, 23)

Expand Down

0 comments on commit 2904452

Please sign in to comment.