1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-03-19 21:10:15 +02:00
chroma/formatters/html/html_test.go

15 lines
288 B
Go
Raw Normal View History

package html
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestCompressStyle(t *testing.T) {
style := "color: #888888; background-color: #ffffff"
actual := compressStyle(style)
expected := "color:#888;background-color:#fff"
require.Equal(t, expected, actual)
}