This commit is contained in:
Schluffe
2026-09-26 23:54:03 +02:00
parent 8b2de757ac
commit 9758ae6dad
2 changed files with 60 additions and 27 deletions
+3 -2
View File
@@ -1,12 +1,13 @@
import { assertEquals } from "jsr:@std/assert";
import { createSession } from "#/server/handler.ts";
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}`);
const sessionId = createSession();
const [s1, m1] = await connect(`${href}?sessionId=${sessionId}`);
await flush();
assertEquals(m1, []);
await close(s1);