expect method

Future<Response> expect(
  1. List<Checker<Response>> conditions, {
  2. Map<String, dynamic> pathParams = const {},
})

Implementation

Future<ht.Response> expect(List<Checker<ht.Response>> conditions,
    {Map<String, dynamic> pathParams = const {}}) async {
  final resp = await go(pathParams: pathParams);
  resp.expect(conditions);
  return resp;
}