bodyIs function
Implementation
Checker<Response> bodyIs(String expected) => (Response resp) {
bool equal = expected == resp.body;
if (!equal) {
return <Mismatch>[
new EqualityMismatch(expected, resp.body,
customMessage: (m) =>
'Expected body ${m.expected} but found ${m.actual}!')
];
}
return <Mismatch>[];
};