Skip to content

Commit

Permalink
chore: more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed May 2, 2024
1 parent 0fefc50 commit 5f2e713
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion tests/main_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ Deno.test("static files in custom directory", async () => {
hostname: "127.0.0.1",
port: 80,
},
});
// deno-lint-ignore no-explicit-any
} as any);
};

const resp = await newRouter(
Expand Down
6 changes: 4 additions & 2 deletions tests/plugin_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const router = (req: Request) => {
hostname: "127.0.0.1",
port: 80,
},
});
// deno-lint-ignore no-explicit-any
} as any);
};

Deno.test("/static page prerender", async () => {
Expand Down Expand Up @@ -98,7 +99,8 @@ Deno.test("plugin routes and middleware -- async _app", async () => {
hostname: "127.0.0.1",
port: 80,
},
});
// deno-lint-ignore no-explicit-any
} as any);
};

const resp = await router(new Request("https://fresh.deno.dev/test"));
Expand Down
3 changes: 2 additions & 1 deletion tests/test_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ export async function fakeServe(
const ctx = await ServerContext.fromManifest(manifest, config);
const handler = ctx.handler();

const conn: ServeHandlerInfo = {
// deno-lint-ignore no-explicit-any
const conn: any = {
remoteAddr: {
transport: "tcp",
hostname: "127.0.0.1",
Expand Down
3 changes: 2 additions & 1 deletion tests/trailing_slash_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const router = (req: Request) => {
hostname: "127.0.0.1",
port: 80,
},
});
// deno-lint-ignore no-explicit-any
} as any);
};

Deno.test("forwards slash placed at the end of url", async () => {
Expand Down

0 comments on commit 5f2e713

Please sign in to comment.