mirror of
https://github.com/oxynote/oxynote.git
synced 2026-10-17 10:59:20 +02:00
10 lines
345 B
TypeScript
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()
|
|
})
|
|
})
|