2026-06-30 20:57:55 +10:00
|
|
|
import { describe, it } from "node:test";
|
|
|
|
|
import { expect } from "expect";
|
2026-05-15 08:58:31 +10:00
|
|
|
|
|
|
|
|
import { createDefaultConfig } from "../../src/config/defaults.js";
|
|
|
|
|
import { resolveTruthDocsRoot } from "../../src/truth/docs.js";
|
|
|
|
|
|
|
|
|
|
describe("resolveTruthDocsRoot", () => {
|
2026-06-13 04:09:45 +10:00
|
|
|
it("returns the normalized configured truth root", () => {
|
2026-05-15 08:58:31 +10:00
|
|
|
const config = createDefaultConfig();
|
|
|
|
|
|
2026-06-16 00:54:46 +10:00
|
|
|
expect(resolveTruthDocsRoot(config)).toBe("docs/truthmark/engineering");
|
2026-05-15 08:58:31 +10:00
|
|
|
});
|
|
|
|
|
});
|