expectJsonBody function

void expectJsonBody(
  1. Response response,
  2. 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)));