Skip to content

Commit

Permalink
test: removed debug print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
achannarasappa committed Mar 6, 2021
1 parent 6f29b22 commit ce7f885
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions internal/ui/util/util_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package util_test

import (
"os"

"github.com/davecgh/go-spew/spew"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

Expand Down Expand Up @@ -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)))
})
})
Expand All @@ -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)))
})
})
Expand All @@ -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)))
})
})
Expand All @@ -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)))
})
})
Expand All @@ -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)))
})
})
Expand All @@ -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)))
})
})
Expand All @@ -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)))
})
})
Expand Down

0 comments on commit ce7f885

Please sign in to comment.