Files
plainleaf/client/document_editor_js.test.ts
2026-08-13 11:17:30 +08:00

9 lines
283 B
TypeScript

import { expect, test } from "vitest";
import documentEditorJS from "./document_editor_js.ts";
test("document editor bridge ignores messages from nested preview frames", () => {
expect(documentEditorJS).toContain(
"if (message.source !== globalThis.parent) return;",
);
});