assertTextContains method
Asserts body contains expected.
Implementation
void assertTextContains(String expected) {
if (!body.contains(expected)) {
throw TestAssertionError(
'expected body to contain "$expected"\nbody: $body');
}
}
Asserts body contains expected.
void assertTextContains(String expected) {
if (!body.contains(expected)) {
throw TestAssertionError(
'expected body to contain "$expected"\nbody: $body');
}
}