FluentAssertions extension

Extension on TestResponse for fluent assertions.

Example:

final res = await client.get('/users');
await res.expect
  .status(200)
  .header('content-type', contains('json'))
  .jsonPath('users', hasLength(greaterThan(0)));
on

Properties

expect ResponseExpect

Available on TestResponse, provided by the FluentAssertions extension

Returns a fluent assertion builder for this response.
no setter