oxynote/web/app/utils/html.test.ts
2026-08-17 23:08:41 +02:00

10 lines
345 B
TypeScript

import { describe, it } from "vitest"
import { waitForHtmlElementById } from "./html"
describe("waitForHtmlElementById", () => {
// node has no document, so this exercises the SSR guard directly
it("resolves null when no document exists", async ({ expect }) => {
await expect(waitForHtmlElementById("any", 1000)).resolves.toBeNull()
})
})