mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-18 06:30:46 -08:00
9ecd7c09a4
introducing a map of named standard color values that can be referenced in theme segments
20 lines
426 B
Go
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()
|
|
}
|