expectStatus method
fail the test when the status is not code
Implementation
TestResponse expectStatus(int code) {
expect(status, code, reason: 'Wrong status. The body is: $body');
return this;
}
fail the test when the status is not code
TestResponse expectStatus(int code) {
expect(status, code, reason: 'Wrong status. The body is: $body');
return this;
}