expectStatus method

TestResponse expectStatus(
  1. int code
)

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;
}