15 lines
344 B
TypeScript
15 lines
344 B
TypeScript
/// <reference lib="deno.ns" />
|
|
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 [s1, m1] = await connect(href);
|
|
await flush();
|
|
assertEquals(m1, []);
|
|
await close(s1);
|
|
}, handler),
|
|
);
|