From 8aa1804f4cca279c222303865248e8ca3db13dcd Mon Sep 17 00:00:00 2001 From: Marcin Federowicz Date: Thu, 26 Oct 2023 23:42:09 +0200 Subject: [PATCH] fix:ignore color marks when compare stings in test --- revivelib/core_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/revivelib/core_test.go b/revivelib/core_test.go index 9dd15056e..3e401f67a 100644 --- a/revivelib/core_test.go +++ b/revivelib/core_test.go @@ -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" @@ -45,6 +46,7 @@ func TestReviveFormat(t *testing.T) { } // ACT + color.NoColor = true failures, exitCode, err := revive.Format("stylish", failuresChan) // ASSERT if err != nil {