Skip to content

Commit

Permalink
fix(api) group test
Browse files Browse the repository at this point in the history
  • Loading branch information
helderbetiol committed Apr 10, 2024
1 parent 55242e9 commit fe6c3bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions API/models/create_object_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ func TestValidateEntityGroupParent(t *testing.T) {
template["parentId"] = "siteA.building-1.room-1"
template["name"] = "groupA"
template["attributes"].(map[string]any)["content"] = "rack-1"
err = models.ValidateEntity(u.GROUP, template)
assert.NotNil(t, err)
assert.Equal(t, "All group objects must be directly under the parent (no . allowed)", err.Message)

Expand Down

0 comments on commit fe6c3bc

Please sign in to comment.