mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-12-05 08:15:41 -08:00
Make every URL the console page uses page-relative, guarded by a source test
AI Assisted
This commit is contained in:
1 parent
4ced32be5c
commit
1d007737b1
47 files changed
+401
-202
No files matched your search
@@ -432,7 +432,7 @@ test("kept attachments are served read-only from the session's spec, by their ex
|
||||
assert.match(kept, /realpathSync/);
|
||||
assert.match(kept, /path\.dirname\(real\)\.toLowerCase\(\) !== realDir\.toLowerCase\(\)/, "only files directly in attachments/");
|
||||
const render = fs.readFileSync(path.join(ROOT, "src", "web-console", "public", "render.js"), "utf8");
|
||||
assert.match(render, /return "\/attachments\/" \+ kept\[1\]\.toLowerCase\(\)/);
|
||||
assert.match(render, /return "attachments\/" \+ kept\[1\]\.toLowerCase\(\)/);
|
||||
assert.match(render, /function isComment\(t\)/, "HTML comments are not shown");
|
||||
assert.match(render, /"!": \{ mark: "!", label: "blocked"/, "a blocked task gets its marker");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user