Backend: Add tests for pkg/colors/luminance.go

This commit is contained in:
Theresa Gresch 2020-04-28 14:51:01 +02:00
parent c5a371ed18
commit 825e629bb9

View file

@ -0,0 +1,12 @@
package colors
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestLuminance_Hex(t *testing.T) {
lum := Luminance(1)
assert.Equal(t, "1", lum.Hex())
}