Added 'auto' style config

AutoStyleConfig points to either DarkStyleConfig or LightStyleConfig
depending on the current terminal's background color.
This commit is contained in:
Christian Muehlhaeuser committed 2020-01-14 02:01:22 +01:00
1 parent 392f5b033b
commit ac879be81a
5 files changed
+28 -4

No files matched your search

+9
View File
@@ -90,6 +90,15 @@ func TestTermRenderer(t *testing.T) {
}
}
func TestStyles(t *testing.T) {
_, err := NewTermRenderer(
WithStandardStyle("auto"),
)
if err != nil {
t.Fatal(err)
}
}
func TestRenderHelpers(t *testing.T) {
in, err := ioutil.ReadFile(markdown)
if err != nil {