Skip to content

Commit 594f60d

Browse files
Update templates/flutter/test/services/service_test.dart.twig
Co-authored-by: Steven <[email protected]>
1 parent fbeead0 commit 594f60d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/flutter/test/services/service_test.dart.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void main() {
9292
{%~ endif ~%}
9393

9494
final response = await {{service.name | caseCamel}}.{{method.name | caseCamel}}({%~ for parameter in method.parameters.all | filter((param) => param.required) ~%}
95-
{{parameter.name | escapeKeyword | caseCamel}}: {% if parameter.type == 'object' %}{}{% elseif parameter.type == 'file' %}InputFile.fromPath(path: './image.png'){% else %}'{{parameter.example}}'{%~ endif ~%},{%~ endfor ~%}
95+
{{parameter.name | escapeKeyword | caseCamel}}: {% if parameter.type == 'object' %}{}{% elseif parameter.type == 'array' %}[]{% elseif parameter.type == 'file' %}InputFile.fromPath(path: './image.png'){% else %}'{{parameter.example}}'{%~ endif ~%},{%~ endfor ~%}
9696
);
9797

9898
{%- if method.type == 'location' ~%}

0 commit comments

Comments
 (0)