Skip to content

Commit 9472517

Browse files
authored
Merge pull request #698 from milesziemer/use-httpresponse-constructor-protocoltests
Use HttpResponse constructor in protocol tests
2 parents bc5ba49 + f964669 commit 9472517

File tree

1 file changed

+2
-2
lines changed
  • smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen

1 file changed

+2
-2
lines changed

smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/protocol-test-stub.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ class ResponseDeserializationTestHandler implements HttpHandler {
5757
options?: HttpHandlerOptions
5858
): Promise<{ response: HttpResponse }> {
5959
return Promise.resolve({
60-
response: {
60+
response: new HttpResponse({
6161
statusCode: this.code,
6262
headers: this.headers,
6363
body: Readable.from([this.body])
64-
}
64+
})
6565
});
6666
}
6767
}

0 commit comments

Comments
 (0)