File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
templates/swift/tests/e2e Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -61,18 +61,18 @@ final class {{client}}RequestsTestsE2E: XCTestCase {
61
61
}
62
62
63
63
{ {#response} }
64
- let e2eResponse { {#isGeneric} }: Response<{ {{returnType} }}<Hit >>{ {/isGeneric} } = { {> tests/method} }
64
+ let response { {#isGeneric} }: Response<{ {{returnType} }}<Hit >>{ {/isGeneric} } = { {> tests/method} }
65
65
{ {#body} }
66
- let e2eResponseBody = try XCTUnwrap(e2eResponse .body)
67
- let e2eResponseBodyData = try CodableHelper.jsonEncoder.encode(e2eResponseBody )
66
+ let responseBody = try XCTUnwrap(response .body)
67
+ let responseBodyData = try CodableHelper.jsonEncoder.encode(responseBody )
68
68
69
- let e2eExpectedBodyData = try XCTUnwrap("{ {#lambda.escapeQuotes} }{ {{body} }}{ {/lambda.escapeQuotes} }".data(using: .utf8))
69
+ let expectedBodyData = try XCTUnwrap("{ {#lambda.escapeQuotes} }{ {{body} }}{ {/lambda.escapeQuotes} }".data(using: .utf8))
70
70
71
- XCTLenientAssertEqual(received: e2eResponseBodyData , expected: e2eExpectedBodyData )
71
+ XCTLenientAssertEqual(received: responseBodyData , expected: expectedBodyData )
72
72
{ {/body} }
73
73
74
74
{ {#statusCode} }
75
- XCTAssertEqual(e2eResponse .statusCode, { {statusCode} })
75
+ XCTAssertEqual(response .statusCode, { {statusCode} })
76
76
{ {/statusCode} }
77
77
{ {/response} }
78
78
}
You can’t perform that action at this time.
0 commit comments