9 lines
283 B
TypeScript
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;",
|
|
);
|
|
});
|