From ce7f8851431504836e5a3bf7d925ce785b7cfad3 Mon Sep 17 00:00:00 2001 From: Ani Channarasappa Date: Sat, 6 Mar 2021 10:53:56 -0500 Subject: [PATCH] test: removed debug print statement --- internal/ui/util/util_test.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/internal/ui/util/util_test.go b/internal/ui/util/util_test.go index 5176e63..b7f3194 100644 --- a/internal/ui/util/util_test.go +++ b/internal/ui/util/util_test.go @@ -1,9 +1,6 @@ package util_test import ( - "os" - - "github.com/davecgh/go-spew/spew" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -83,8 +80,6 @@ var _ = Describe("Util", func() { expectedANSI16Color := "\x1b[90m$100.00\x1b[0m" expectedANSI256Color := "\x1b[38;5;241m$100.00\x1b[0m" expectedTrueColor := "\x1b[38;5;241m$100.00\x1b[0m" - spew.Dump(os.Getenv("TERM")) - spew.Dump(output) Expect(output).To(SatisfyAny(Equal(expectedASCII), Equal(expectedANSI16Color), Equal(expectedANSI256Color), Equal(expectedTrueColor))) }) }) @@ -96,7 +91,6 @@ var _ = Describe("Util", func() { expectedANSI16Color := "\x1b[32m$100.00\x1b[0m" expectedANSI256Color := "\x1b[38;5;70m$100.00\x1b[0m" expectedTrueColor := "\x1b[38;2;119;153;40m$100.00\x1b[0m" - spew.Dump(output) Expect(output).To(SatisfyAny(Equal(expectedASCII), Equal(expectedANSI16Color), Equal(expectedANSI256Color), Equal(expectedTrueColor))) }) }) @@ -108,7 +102,6 @@ var _ = Describe("Util", func() { expectedANSI16Color := "\x1b[92m$100.00\x1b[0m" expectedANSI256Color := "\x1b[38;5;76m$100.00\x1b[0m" expectedTrueColor := "\x1b[38;2;143;184;48m$100.00\x1b[0m" - spew.Dump(output) Expect(output).To(SatisfyAny(Equal(expectedASCII), Equal(expectedANSI16Color), Equal(expectedANSI256Color), Equal(expectedTrueColor))) }) }) @@ -120,7 +113,6 @@ var _ = Describe("Util", func() { expectedANSI16Color := "\x1b[92m$100.00\x1b[0m" expectedANSI256Color := "\x1b[38;5;82m$100.00\x1b[0m" expectedTrueColor := "\x1b[38;2;174;224;56m$100.00\x1b[0m" - spew.Dump(output) Expect(output).To(SatisfyAny(Equal(expectedASCII), Equal(expectedANSI16Color), Equal(expectedANSI256Color), Equal(expectedTrueColor))) }) }) @@ -132,7 +124,6 @@ var _ = Describe("Util", func() { expectedANSI16Color := "\x1b[31m$100.00\x1b[0m" expectedANSI256Color := "\x1b[38;5;124m$100.00\x1b[0m" expectedTrueColor := "\x1b[38;2;153;73;38m$100.00\x1b[0m" - spew.Dump(output) Expect(output).To(SatisfyAny(Equal(expectedASCII), Equal(expectedANSI16Color), Equal(expectedANSI256Color), Equal(expectedTrueColor))) }) }) @@ -144,7 +135,6 @@ var _ = Describe("Util", func() { expectedANSI16Color := "\x1b[91m$100.00\x1b[0m" expectedANSI256Color := "\x1b[38;5;160m$100.00\x1b[0m" expectedTrueColor := "\x1b[38;2;184;87;46m$100.00\x1b[0m" - spew.Dump(output) Expect(output).To(SatisfyAny(Equal(expectedASCII), Equal(expectedANSI16Color), Equal(expectedANSI256Color), Equal(expectedTrueColor))) }) }) @@ -156,7 +146,6 @@ var _ = Describe("Util", func() { expectedANSI16Color := "\x1b[91m$100.00\x1b[0m" expectedANSI256Color := "\x1b[38;5;196m$100.00\x1b[0m" expectedTrueColor := "\x1b[38;2;224;107;56m$100.00\x1b[0m" - spew.Dump(output) Expect(output).To(SatisfyAny(Equal(expectedASCII), Equal(expectedANSI16Color), Equal(expectedANSI256Color), Equal(expectedTrueColor))) }) })