Skip to content

Commit

Permalink
test: ID methods of node attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 19, 2021
1 parent 2ca153f commit ff9ff04
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ui/node/attributes_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package node

import (
"testing"

"github.com/stretchr/testify/assert"
)

func TestIDs(t *testing.T) {
assert.EqualValues(t, "foo", (&AnchorAttributes{Identifier: "foo"}).ID())
assert.EqualValues(t, "foo", (&ImageAttributes{Identifier: "foo"}).ID())
assert.EqualValues(t, "foo", (&TextAttributes{Identifier: "foo"}).ID())
assert.EqualValues(t, "foo", (&InputAttributes{Name: "foo"}).ID())
}

0 comments on commit ff9ff04

Please sign in to comment.