Skip to content

Commit

Permalink
Move CSS test
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Mar 3, 2024
1 parent 4710e9c commit 17366fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 7 additions & 0 deletions elements_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
8 changes: 0 additions & 8 deletions styles/styles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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())
}

0 comments on commit 17366fe

Please sign in to comment.