ForgeFlow-ERP/frontend/src/components/FormDrawer.test.js
2026-06-15 12:06:46 +08:00

16 lines
619 B
JavaScript

import assert from "node:assert/strict";
import { describe, it } from "node:test";
import { readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
const __dirname = dirname(fileURLToPath(import.meta.url));
const source = readFileSync(join(__dirname, "FormDrawer.vue"), "utf8");
describe("FormDrawer copy discipline", () => {
it("does not render description copy as an always-visible header paragraph", () => {
assert.doesNotMatch(source, /class="form-drawer-description"/);
assert.doesNotMatch(source, /aria-describedby="description/);
});
});