Skip to content

Commit

Permalink
fix:ignore color marks when compare stings in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mfederowicz committed Oct 26, 2023
1 parent 1ef3c0f commit 8aa1804
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions revivelib/core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"strings"
"testing"

"github.com/fatih/color"
"github.com/mgechev/revive/config"
"github.com/mgechev/revive/lint"
"github.com/mgechev/revive/revivelib"
Expand Down Expand Up @@ -45,6 +46,7 @@ func TestReviveFormat(t *testing.T) {
}

// ACT
color.NoColor = true
failures, exitCode, err := revive.Format("stylish", failuresChan)
// ASSERT
if err != nil {
Expand Down

0 comments on commit 8aa1804

Please sign in to comment.