forked from Mirrors/jsonapi
fix the build
This commit is contained in:
parent
81169d52b6
commit
3b09fe9cb9
|
@ -71,7 +71,7 @@ func TestUnmarshalRelationshipsWithoutIncluded(t *testing.T) {
|
||||||
|
|
||||||
// Verify each comment has at least an ID
|
// Verify each comment has at least an ID
|
||||||
for _, comment := range out.Comments {
|
for _, comment := range out.Comments {
|
||||||
if comment.Id == 0 {
|
if comment.ID == 0 {
|
||||||
t.Fatalf("The comment did not have an ID")
|
t.Fatalf("The comment did not have an ID")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,23 +173,23 @@ func TestNoRelations(t *testing.T) {
|
||||||
|
|
||||||
func TestMarshalOnePayloadWithoutIncluded(t *testing.T) {
|
func TestMarshalOnePayloadWithoutIncluded(t *testing.T) {
|
||||||
data := &Post{
|
data := &Post{
|
||||||
Id: 1,
|
ID: 1,
|
||||||
BlogId: 2,
|
BlogID: 2,
|
||||||
ClientId: "123e4567-e89b-12d3-a456-426655440000",
|
ClientID: "123e4567-e89b-12d3-a456-426655440000",
|
||||||
Title: "Foo",
|
Title: "Foo",
|
||||||
Body: "Bar",
|
Body: "Bar",
|
||||||
Comments: []*Comment{
|
Comments: []*Comment{
|
||||||
&Comment{
|
&Comment{
|
||||||
Id: 20,
|
ID: 20,
|
||||||
Body: "First",
|
Body: "First",
|
||||||
},
|
},
|
||||||
&Comment{
|
&Comment{
|
||||||
Id: 21,
|
ID: 21,
|
||||||
Body: "Hello World",
|
Body: "Hello World",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
LatestComment: &Comment{
|
LatestComment: &Comment{
|
||||||
Id: 22,
|
ID: 22,
|
||||||
Body: "Cool!",
|
Body: "Cool!",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue