@@ -22,7 +22,7 @@ void main() {
22
22
await client.fetchCollection ('articles' );
23
23
fail ('Exception expected' );
24
24
} on RequestFailure catch (e) {
25
- expect (e.httpResponse.statusCode, 422 );
25
+ expect (e.rawResponse. httpResponse.statusCode, 422 );
26
26
expect (e.errors.first.status, '422' );
27
27
expect (e.errors.first.title, 'Invalid Attribute' );
28
28
}
@@ -33,7 +33,7 @@ void main() {
33
33
await client.fetchCollection ('articles' );
34
34
fail ('Exception expected' );
35
35
} on RequestFailure catch (e) {
36
- expect (e.httpResponse.statusCode, 500 );
36
+ expect (e.rawResponse. httpResponse.statusCode, 500 );
37
37
}
38
38
});
39
39
});
@@ -558,7 +558,7 @@ void main() {
558
558
'articles' , '1' , 'author' , Identifier ('people' , '42' ));
559
559
fail ('Exception expected' );
560
560
} on RequestFailure catch (e) {
561
- expect (e.httpResponse.statusCode, 422 );
561
+ expect (e.rawResponse. httpResponse.statusCode, 422 );
562
562
expect (e.errors.first.status, '422' );
563
563
}
564
564
});
@@ -615,7 +615,7 @@ void main() {
615
615
await client.deleteToOne ('articles' , '1' , 'author' );
616
616
fail ('Exception expected' );
617
617
} on RequestFailure catch (e) {
618
- expect (e.httpResponse.statusCode, 422 );
618
+ expect (e.rawResponse. httpResponse.statusCode, 422 );
619
619
expect (e.errors.first.status, '422' );
620
620
}
621
621
});
@@ -680,7 +680,7 @@ void main() {
680
680
.deleteFromMany ('articles' , '1' , 'tags' , [Identifier ('tags' , '1' )]);
681
681
fail ('Exception expected' );
682
682
} on RequestFailure catch (e) {
683
- expect (e.httpResponse.statusCode, 422 );
683
+ expect (e.rawResponse. httpResponse.statusCode, 422 );
684
684
expect (e.errors.first.status, '422' );
685
685
}
686
686
});
@@ -747,7 +747,7 @@ void main() {
747
747
.replaceToMany ('articles' , '1' , 'tags' , [Identifier ('tags' , '1' )]);
748
748
fail ('Exception expected' );
749
749
} on RequestFailure catch (e) {
750
- expect (e.httpResponse.statusCode, 422 );
750
+ expect (e.rawResponse. httpResponse.statusCode, 422 );
751
751
expect (e.errors.first.status, '422' );
752
752
}
753
753
});
@@ -814,7 +814,7 @@ void main() {
814
814
.addMany ('articles' , '1' , 'tags' , [Identifier ('tags' , '1' )]);
815
815
fail ('Exception expected' );
816
816
} on RequestFailure catch (e) {
817
- expect (e.httpResponse.statusCode, 422 );
817
+ expect (e.rawResponse. httpResponse.statusCode, 422 );
818
818
expect (e.errors.first.status, '422' );
819
819
expect (e.toString (), contains ('422' ));
820
820
}
0 commit comments