@@ -17,7 +17,8 @@ void main() {
17
17
await client
18
18
.createNew ('posts' , attributes: {'title' : 'Hello world' }).then ((r) {
19
19
expect (r.rawResponse.httpResponse.statusCode, 201 );
20
- expect (r.rawResponse.httpResponse.headers['location' ], ['/posts/${r .resource .id }' ]);
20
+ expect (r.rawResponse.httpResponse.headers['location' ],
21
+ ['/posts/${r .resource .id }' ]);
21
22
expect (r.links['self' ].toString (), '/posts/${r .resource .id }' );
22
23
expect (r.resource.type, 'posts' );
23
24
expect (r.resource.attributes['title' ], 'Hello world' );
@@ -31,7 +32,8 @@ void main() {
31
32
attributes: {'title' : 'Hello world' },
32
33
one: {'self' : LocalIdentifier ('posts' , 'lid' )}).then ((r) {
33
34
expect (r.rawResponse.httpResponse.statusCode, 201 );
34
- expect (r.rawResponse.httpResponse.headers['location' ], ['/posts/${r .resource .id }' ]);
35
+ expect (r.rawResponse.httpResponse.headers['location' ],
36
+ ['/posts/${r .resource .id }' ]);
35
37
expect (r.links['self' ].toString (), '/posts/${r .resource .id }' );
36
38
expect (r.resource.type, 'posts' );
37
39
expect (r.resource.attributes['title' ], 'Hello world' );
0 commit comments