oh-my-posh/src/config_test.go
Yehor Borkov 9ecd7c09a4
feat(palette): a map of named color values
introducing a map of named standard color
values that can be referenced in theme segments
2021-11-22 15:25:56 +01:00

20 lines
426 B
Go

package main
import (
"testing"
"github.com/gookit/config/v2"
"github.com/stretchr/testify/assert"
)
func TestSettingsExportJSON(t *testing.T) {
defer testClearDefaultConfig()
content := exportConfig("../themes/jandedobbeleer.omp.json", "json")
assert.NotContains(t, content, "\\u003ctransparent\\u003e")
assert.Contains(t, content, "<transparent>")
}
func testClearDefaultConfig() {
config.Default().ClearAll()
}