Skip to content

Commit

Permalink
fix: rename file_test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Ringrose committed Mar 9, 2024
1 parent fe3e210 commit 18c3d00
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/preactSSR/src/pages/Home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Home = () => {
<h2 id="handlers">Handlers</h2>
<ul>
<li><a target="_blank" href="https://github.com/sebringrose/peko/blob/main/handlers/ssr.ts">Server-side render</a></li>
<li><a target="_blank" href="https://github.com/sebringrose/peko/blob/main/handlers/static.ts">Static assets</a></li>
<li><a target="_blank" href="https://github.com/sebringrose/peko/blob/main/handlers/file.ts">Static files</a></li>
<li><a target="_blank" href="https://github.com/sebringrose/peko/blob/main/handlers/sse.ts">Server-sent events</a></li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion example/singleFileAuth/app.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Peko from "../../lib/mod.ts"; // "https://deno.land/x/peko/mod.ts"
import * as Peko from "../../mod.ts"; // "https://deno.land/x/peko/mod.ts"

const html = String;
const router = new Peko.Router();
Expand Down
4 changes: 2 additions & 2 deletions tests/handlers/static_test.ts → tests/handlers/file_test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { assert } from "https://deno.land/[email protected]/assert/mod.ts";
import { Router, RequestContext } from "../../lib/Router.ts";
import { file } from "../../lib/handlers/static.ts";
import { file } from "../../lib/handlers/file.ts";

Deno.test("HANDLER: Static", async (t) => {
Deno.test("HANDLER: File", async (t) => {
const server = new Router();
const ctx = new RequestContext(server, new Request("http://localhost"));
const fileURL = new URL(import.meta.url);
Expand Down

0 comments on commit 18c3d00

Please sign in to comment.