expectJsonBody function
void
expectJsonBody(
- Response response,
- dynamic expectedBody
Expects the response body to be a JSON object that matches the given
expectedBody
.
Implementation
void expectJsonBody(
Response response,
dynamic expectedBody,
) =>
expect(response.json(), completion(equals(expectedBody)));