mirror of
https://github.com/vicky469/aside.git
synced 2026-07-22 17:42:04 +00:00
Register the UI before startup maintenance so Aside is visible while persistence cleanup runs in the background. Cancel long persistence scans on unload, skip generated markdown paths, and prune deleted sidecar/source records before rebuilding the index.
12 lines
424 B
TypeScript
12 lines
424 B
TypeScript
import * as assert from "node:assert/strict";
|
|
import { readFileSync } from "node:fs";
|
|
import test from "node:test";
|
|
|
|
test("comment persistence startup scans use the commentable file policy", () => {
|
|
const source = readFileSync("src/comments/commentPersistenceController.ts", "utf8");
|
|
|
|
assert.equal(
|
|
source.includes(".filter((file) => !this.host.isAllCommentsNotePath(file.path))"),
|
|
false,
|
|
);
|
|
});
|