mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 23:29:02 +02:00
chore(test/client): wrong path to docs
This commit is contained in:
parent
32bc24b4c8
commit
50d1d4fae1
@ -2,6 +2,7 @@ import { describe, expect, it } from "vitest";
|
|||||||
import { byBookType, byNoteType } from "./help_button.js";
|
import { byBookType, byNoteType } from "./help_button.js";
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import type { HiddenSubtreeItem } from "@triliumnext/commons";
|
import type { HiddenSubtreeItem } from "@triliumnext/commons";
|
||||||
|
import path from "path";
|
||||||
|
|
||||||
describe("Help button", () => {
|
describe("Help button", () => {
|
||||||
it("All help notes are accessible", () => {
|
it("All help notes are accessible", () => {
|
||||||
@ -24,7 +25,8 @@ describe("Help button", () => {
|
|||||||
...Object.values(byBookType)
|
...Object.values(byBookType)
|
||||||
].filter((noteId) => noteId) as string[];
|
].filter((noteId) => noteId) as string[];
|
||||||
|
|
||||||
const meta: HiddenSubtreeItem[] = JSON.parse(fs.readFileSync("src/public/app/doc_notes/en/User Guide/!!!meta.json", "utf-8"));
|
const metaPath = path.resolve(path.join(__dirname, "../../../../server/src/public/app/doc_notes/en/User Guide/!!!meta.json"));
|
||||||
|
const meta: HiddenSubtreeItem[] = JSON.parse(fs.readFileSync(metaPath, "utf-8"));
|
||||||
const allNoteIds = new Set(getNoteIds(meta));
|
const allNoteIds = new Set(getNoteIds(meta));
|
||||||
|
|
||||||
for (const helpNote of allHelpNotes) {
|
for (const helpNote of allHelpNotes) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user