diff --git a/t/relationships.t b/t/relationships.t index 533cd9b..fabf922 100644 --- a/t/relationships.t +++ b/t/relationships.t @@ -20,8 +20,8 @@ subtest basic => sub { ok not $s->{data}{attributes}; - like $s, - { data => { + like $s => { + data => { id => 1, type => 'thing', relationships => @@ -29,7 +29,7 @@ subtest basic => sub { }, included => [ { type => 'subthing', id => 2, attributes => { x => 10 } }, ] - }; + }; }; @@ -38,10 +38,24 @@ subtest "don't repeat includes" => sub { 'thing', [ { id => 1, - subthings => [ { id => 2, x => 10 }, { id => 3, y => 20 } ] + subthings => [ + { id => 2, + x => 10 + }, + { id => 3, + y => 20 + } + ] }, { id => 2, - subthings => [ { id => 3, y => 20 }, { id => 2, x => 10 } ] + subthings => [ + { id => 3, + y => 20 + }, + { id => 2, + x => 10 + } + ] } ] );