Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tokuhirom committed Feb 29, 2024
1 parent fadc9f1 commit 3dc7178
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions test/http-fetch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,32 +205,6 @@ describe("http(fetch)", () => {
equal(scope.isDone(), true);
});

const mockPostBinary = (
buffer: Buffer,
reqheaders: Record<string, string>,
) => {
const result = new MSWResult();
server.use(
http.post(
baseURL + "/post/binary",
async ({ request, params, cookies }) => {
for (const key in interceptionOption) {
equal(request.headers.get(key), interceptionOption[key]);
}
for (const key in reqheaders) {
equal(request.headers.get(key), reqheaders[key]);
}
equal(request.headers.get("content-length"), buffer.length + "");

result.done();

return HttpResponse.json({});
},
),
);
return result;
};

it("fail with 404", async () => {
const scope = new MSWResult();
server.use(
Expand Down

0 comments on commit 3dc7178

Please sign in to comment.