16 lines
594 B
TypeScript
16 lines
594 B
TypeScript
// @vitest-environment node
|
|
import { readFileSync } from "node:fs";
|
|
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
const source = readFileSync(path.join(path.dirname(fileURLToPath(import.meta.url)), "relationships.tsx"), "utf8");
|
|
|
|
describe("admin entity relationships route", () => {
|
|
it("does not render a raw Todo placeholder", () => {
|
|
expect(source).not.toContain("<div>Todo</div>");
|
|
expect(source).toContain("UnderConstruction");
|
|
expect(source).toContain("admin.entities.relationships.title");
|
|
});
|
|
});
|