assertBodyEmpty method

void assertBodyEmpty()

Asserts empty body.

Implementation

void assertBodyEmpty() {
  if (body.isNotEmpty) {
    throw TestAssertionError('expected empty body, got "$body"');
  }
}