Files
nage/server/client.test.ts
T
2026-09-26 17:23:12 +02:00

15 lines
354 B
TypeScript

import { assertEquals } from "jsr:@std/assert";
import handler from "./handler.ts";
import { close, connect, flush, href, setup } from "./testSetup.ts";
Deno.test(
"test",
setup(async () => {
const t1 = "123-abc";
const [s1, m1] = await connect(`${href}?ticket=${t1}`);
await flush();
assertEquals(m1, []);
await close(s1);
}, handler),
);