expectJson static method
Asserts that a JSON pointer equals expected.
Implementation
static void expectJson(
HttpResponseSpec response,
String pointer,
Object? expected,
) {
final actual = jsonPointer(response.body, pointer);
if (actual != expected) {
throw StateError('Expected $pointer=$expected, got $actual');
}
}