Skip to content

Commit 1c07aaa

Browse files
committed
fix(swift): test template in case of response
1 parent 20a3eec commit 1c07aaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/swift/tests/client/method.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{{#hasResponse}}let response{{#isGeneric}}: Response<{{{returnType}}}<Hit>>{{/isGeneric}} = {{/hasResponse}}{{> tests/method}}
1+
{{#hasResponse}}let response{{#isGeneric}}: Response<{{{returnType}}}<Hit>>{{/isGeneric}} = {{> tests/method}}{{/hasResponse}}
2+
{{^hasResponse}}let _{{#isGeneric}}: Response<{{{returnType}}}<Hit>>{{/isGeneric}} = {{> tests/method}}{{/hasResponse}}
23
{{^isHelper}}
34
{{^isBenchmark}}
45
let responseBodyData = try XCTUnwrap(response.bodyData)

0 commit comments

Comments
 (0)