feat: use (exported) consts for default styles (#232)

This commit is contained in:
Christian Rocha
2023-05-19 09:14:05 -04:00
committed by GitHub
parent cd217b9c0f
commit 7528eaad66
4 changed files with 23 additions and 12 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ const (
func TestTermRendererWriter(t *testing.T) {
r, err := NewTermRenderer(
WithStandardStyle("dark"),
WithStandardStyle(DarkStyle),
)
if err != nil {
t.Fatal(err)
@@ -152,7 +152,7 @@ func TestStyles(t *testing.T) {
}
_, err = NewTermRenderer(
WithStandardStyle("auto"),
WithStandardStyle(AutoStyle),
)
if err != nil {
t.Fatal(err)