Skip to content
161 changes: 0 additions & 161 deletions templates/dart/test/channel_test.dart.twig

This file was deleted.

4 changes: 4 additions & 0 deletions templates/dart/test/services/service_test.dart.twig
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ void main() {
{%- if method.type == 'location' ~%}
expect(response, isA<Uint8List>());
{%~ endif ~%}{%~ if method.responseModel and method.responseModel != 'any' ~%}
{% if method.responseModels|length > 1 %}
expect(response, isA<Map<String, dynamic>>());
{% else %}
expect(response, isA<models.{{method.responseModel | caseUcfirst | overrideIdentifier}}>());
{% endif %}
{%~ endif ~%}
});

Expand Down