Skip to content

Commit

Permalink
chore: remove useless binding in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hebilicious committed May 14, 2023
1 parent 06be38e commit 818cab1
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions test/presets/cloudflare-module.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { promises as fsp } from "node:fs";
import { join, resolve } from "pathe";
import { resolve } from "pathe";
import { Miniflare } from "miniflare";
import { describe, it, expect } from "vitest";
import { Response as _Response } from "undici";
import { describe } from "vitest";

import { setupTest, testNitro } from "../tests";

Expand All @@ -14,16 +12,6 @@ describe("nitro:preset:cloudflare-module", async () => {
modules: true,
scriptPath: resolve(ctx.outDir, "server/index.mjs"),
sitePath: resolve(ctx.outDir, "public"),
bindings: {
ASSETS: {
fetch: async (request) => {
const contents = await fsp.readFile(
join(ctx.outDir, new URL(request.url).pathname)
);
return new _Response(contents);
},
},
},
});

return async ({ url, headers, method, body }) => {
Expand Down

0 comments on commit 818cab1

Please sign in to comment.