feat: move to Deno.serve (#1427)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
co-authored by
Marvin Hagemeister
parent
46ae49d654
commit
e2a1bf8643
@@ -53,13 +53,11 @@ export default function FooPage() {
|
||||
```ts
|
||||
// tests/main_test.ts
|
||||
|
||||
import { createHandler } from "$fresh/server.ts";
|
||||
import { createHandler, ServeHandlerInfo } from "$fresh/server.ts";
|
||||
import manifest from "../fresh.gen.ts";
|
||||
import { assert, assertEquals } from "$std/testing/asserts.ts";
|
||||
import type { ConnInfo } from "$std/http/server.ts";
|
||||
|
||||
const CONN_INFO: ConnInfo = {
|
||||
localAddr: { hostname: "127.0.0.1", port: 8000, transport: "tcp" },
|
||||
const CONN_INFO: ServeHandlerInfo = {
|
||||
remoteAddr: { hostname: "127.0.0.1", port: 53496, transport: "tcp" },
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user