Skip to content

Commit

Permalink
links changes to jsonApiFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejunges committed Jun 24, 2015
1 parent a4d9f71 commit 74bef67
Showing 1 changed file with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,12 @@ test("A serializer can materialize a belongsTo as a link that gets sent back to
data: {
id: '1',
type: 'person',
links: {
group: '/people/1/group'
relationships: {
group: {
links: {
related: '/people/1/group'
}
}
}
}
});
Expand Down Expand Up @@ -353,8 +357,12 @@ test('A record with an async belongsTo relationship always returns a promise for
data: {
id: '1',
type: 'person',
links: {
seat: '/people/1/seat'
relationships: {
seat: {
links: {
related: '/people/1/seat'
}
}
}
}
});
Expand Down Expand Up @@ -399,8 +407,12 @@ test("A record with an async belongsTo relationship returning null should resolv
data: {
id: '1',
type: 'person',
links: {
group: '/people/1/group'
relationships: {
group: {
links: {
related: '/people/1/group'
}
}
}
}
});
Expand Down

0 comments on commit 74bef67

Please sign in to comment.