Skip to content

Commit

Permalink
Fix: constant unknown with invalid type
Browse files Browse the repository at this point in the history
  • Loading branch information
christianezeani committed Oct 28, 2024
1 parent 5a76978 commit b933a6f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/log_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package tests

import (
"testing"

"github.com/Cyberpull/gokit/color"
"github.com/Cyberpull/gokit/log"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
)

type LogTestSuite struct {
suite.Suite
}

func (x *LogTestSuite) TestColor() {
require.NotPanics(x.T(), func() {
logger := log.Color(color.BgCyan)
logger.Println("Testing")
})
}

// ===============================

func TestLog(t *testing.T) {
suite.Run(t, new(LogTestSuite))
}

0 comments on commit b933a6f

Please sign in to comment.