Skip to content

Commit a9cffc8

Browse files
committed
Add rawResponse
1 parent 24fc36b commit a9cffc8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/contract/resource_creation_test.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ void main() {
1717
await client
1818
.createNew('posts', attributes: {'title': 'Hello world'}).then((r) {
1919
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}']);
2122
expect(r.links['self'].toString(), '/posts/${r.resource.id}');
2223
expect(r.resource.type, 'posts');
2324
expect(r.resource.attributes['title'], 'Hello world');
@@ -31,7 +32,8 @@ void main() {
3132
attributes: {'title': 'Hello world'},
3233
one: {'self': LocalIdentifier('posts', 'lid')}).then((r) {
3334
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}']);
3537
expect(r.links['self'].toString(), '/posts/${r.resource.id}');
3638
expect(r.resource.type, 'posts');
3739
expect(r.resource.attributes['title'], 'Hello world');

0 commit comments

Comments
 (0)