Skip to content

Commit

Permalink
fix: test in *-http-handler
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Nov 19, 2020
1 parent cc8d140 commit e238aee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/fetch-http-handler/src/fetch-http-handler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ describe.skip(FetchHttpHandler.name, () => {
fetchHttpHandler.handle({} as any, {
abortSignal: {
aborted: true,
onabort: null,
},
})
).rejects.toHaveProperty("name", "AbortError");
Expand All @@ -130,6 +131,7 @@ describe.skip(FetchHttpHandler.name, () => {
await fetchHttpHandler.handle({} as any, {
abortSignal: {
aborted: false,
onabort: null,
},
});

Expand Down
1 change: 1 addition & 0 deletions packages/node-http-handler/src/node-http-handler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ describe("NodeHttpHandler", () => {
{
abortSignal: {
aborted: true,
onabort: null,
},
}
)
Expand Down
2 changes: 2 additions & 0 deletions packages/node-http-handler/src/node-http2-handler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ describe("NodeHttp2Handler", () => {
nodeH2Handler.handle(new HttpRequest(getMockReqOptions()), {
abortSignal: {
aborted: true,
onabort: null,
},
})
).rejects.toHaveProperty("name", "AbortError");
Expand All @@ -161,6 +162,7 @@ describe("NodeHttp2Handler", () => {
nodeH2Handler.handle(new HttpRequest(getMockReqOptions()), {
abortSignal: {
aborted: true,
onabort: null,
},
})
).rejects.toHaveProperty("name", "AbortError");
Expand Down

0 comments on commit e238aee

Please sign in to comment.