import { readFileSync } from "node:fs"; import { resolve } from "node:path"; import { describe, expect, it } from "vitest"; const definition = JSON.parse(readFileSync(resolve(__dirname, "../../crates/cotton-core/kits/personal/tables/message_import.json"), "utf8")); describe("an export waiting for its owner", () => { // RULE: An import asking who owns an export identifies that export and claims no outside keeper, because choosing a sender is a local import step. it("keeps the export identity on the question page without an outside keeper", () => { expect(definition.page.flatMap((section: { columns: string[] }) => section.columns)).toContain(definition.title); expect(definition.kept_by).toBeUndefined(); }); });