Skip to content

Commit

Permalink
Fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benpate committed Jan 5, 2025
1 parent bad1062 commit dd8c6db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion model/user_accessors.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func UserSchema() schema.Element {
"isOwner": schema.Boolean{},
"isIndexable": schema.Boolean{},
"data": schema.Object{Wildcard: schema.String{}},
"tags": schema.Array{Items: schema.String{}},
"tags": schema.Array{Items: TagSchema()},
},
}
}
Expand Down
6 changes: 3 additions & 3 deletions model/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ func TestUserSchema(t *testing.T) {
{"isIndexable", "true", true},
{"inboxTemplate", "INBOX", nil},
{"outboxTemplate", "OUTBOX", nil},
{"tags.0", "HEy", nil},
{"tags.1", "ThErE", nil},
{"tags.2", "bItChEs", nil},
{"tags.0.name", "HEy", nil},
{"tags.1.name", "ThErE", nil},
{"tags.2.name", "bItChEs", nil},
}

tableTest_Schema(t, &s, &user, tests)
Expand Down

0 comments on commit dd8c6db

Please sign in to comment.