diff --git a/elements_test.go b/elements_test.go index 6a34c1b..bea15c7 100644 --- a/elements_test.go +++ b/elements_test.go @@ -674,3 +674,10 @@ func TestRaw(t *testing.T) { assert.Equal(t, expected, el.Render()) } + +func TestCSS(t *testing.T) { + cssContent := `.test-class {color: #333;}` + expected := `.test-class {color: #333;}` + el := CSS(cssContent) + assert.Equal(t, expected, el.Render()) +} diff --git a/styles/styles_test.go b/styles/styles_test.go index de5b313..40cdd24 100644 --- a/styles/styles_test.go +++ b/styles/styles_test.go @@ -6,13 +6,6 @@ import ( "github.com/stretchr/testify/assert" ) -func TestCSS(t *testing.T) { - cssContent := `.test-class {color: #333;}` - expected := `.test-class {color: #333;}` - el := CSS(cssContent) - assert.Equal(t, expected, el.Render()) -} - func TestStyleToInline(t *testing.T) { style := Props{ BackgroundColor: "blue", @@ -44,4 +37,3 @@ func TestStyleString_UnorderedKeys(t *testing.T) { } assert.Equal(t, "background-color: blue; color: white; font-size: 16px; outline-style: solid;", style.ToInline()) } -