mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-07-25 05:53:00 +00:00
18 lines
670 B
TypeScript
18 lines
670 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { inspectTroubleshootingDocs } from "./inspect-troubleshooting-docs";
|
|
|
|
describe("troubleshooting documentation contract", () => {
|
|
it("uses current English UI labels and resolves every local guide reference", async () => {
|
|
const result = await inspectTroubleshootingDocs();
|
|
|
|
expect(result.checkedFiles).toEqual([
|
|
"docs/troubleshooting.md",
|
|
"docs/recovery.md",
|
|
"docs/tips/p2p-sync-tips.md",
|
|
]);
|
|
expect(result.checkedLocalReferences).toBeGreaterThan(0);
|
|
expect(result.errors).toEqual([]);
|
|
expect(result.ok).toBe(true);
|
|
});
|
|
});
|