Skip to content

Commit ec82249

Browse files
committed
fix: dart templates
1 parent 7ff764a commit ec82249

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed
Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1 @@
1-
try {
2-
{{#hasResponse}}final res = {{/hasResponse}}await client.{{method}}(
3-
{{#parametersWithDataType}}
4-
{{> tests/request_param}}
5-
{{/parametersWithDataType}}
6-
);
7-
{{#testResponse}}
8-
{{^match.isPrimitive}}
9-
expectBody(res, """{{{match.value}}}""");
10-
{{/match.isPrimitive}}
11-
{{#match.isPrimitive}}
12-
expect(res, {{#match}}{{> tests/param_value}}{{/match}});
13-
{{/match.isPrimitive}}
14-
{{/testResponse}}
15-
} on InterceptionException catch (_) {
16-
// Ignore InterceptionException
17-
}
1+
{{> tests/method}}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
try {
2+
{{#hasResponse}}final res = {{/hasResponse}}await client.{{method}}(
3+
{{#parametersWithDataType}}
4+
{{> tests/request_param}}
5+
{{/parametersWithDataType}}
6+
);
7+
{{#testResponse}}
8+
{{^match.isPrimitive}}
9+
expectBody(res, """{{{match.value}}}""");
10+
{{/match.isPrimitive}}
11+
{{#match.isPrimitive}}
12+
expect(res, {{#match}}{{> tests/param_value}}{{/match}});
13+
{{/match.isPrimitive}}
14+
{{/testResponse}}
15+
} on InterceptionException catch (_) {
16+
// Ignore InterceptionException
17+
}

0 commit comments

Comments
 (0)