Skip to content

Commit

Permalink
[Fix] test of attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
JanGalek committed Jan 17, 2025
1 parent d6d64c4 commit 19510dd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/html_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ func TestHtml(t *testing.T) {

assert.Equal(t, "div", el.GetName())
assert.Equal(t, false, el.IsEmpty())
assert.Equal(t, []*html.Attribute{
html.NewAttribute("class", "container"),
html.NewAttribute("id", "main"),
html.NewAttribute("data-id", "123"),
html.NewAttribute("data-level", "45"),
}, el.GetAttributes())

assert.Equal(t, html.NewAttribute("class", "container"), el.GetAttribute("class"))
assert.Equal(t, html.NewAttribute("id", "main"), el.GetAttribute("id"))
assert.Equal(t, html.NewAttribute("data-id", "123"), el.GetAttribute("data-id"))
assert.Equal(t, html.NewAttribute("data-level", "45"), el.GetAttribute("data-level"))

assert.Equal(t, html.NewAttribute("class", "container"), el.GetAttribute("class"))
})

Expand Down

0 comments on commit 19510dd

Please sign in to comment.