16 lines
619 B
JavaScript
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/);
|
|
});
|
|
});
|