fix routes

This commit is contained in:
Frederik Spirgi
2026-09-23 10:37:05 +02:00
parent c56b2c4058
commit e7e2ef7543
6 changed files with 32 additions and 26 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import test from "node:test";
import assert from "node:assert/strict";
import {readFile} from "node:fs/promises";
import {regenerateInline} from "../public/app/regeneration.js";
import {regenerateInline} from "../public/js/regeneration.js";
class Element {
constructor(tag = "div") {
@@ -86,7 +86,7 @@ test("inline renderer streams in place, follows only nearby output, commits or r
});
test("Regenerate uses inline activity and never reloads or appends a chat message", async () => {
const source = await readFile(new URL("../public/script.js", import.meta.url), "utf8");
const source = await readFile(new URL("../public/js/script.js", import.meta.url), "utf8");
const regenerate = source.slice(source.indexOf("async function retryLatestAssistantMessage"), source.indexOf("async function switchResponseVersion"));
assert.match(regenerate, /setLoadingState\(true, false\)/);
assert.match(regenerate, /regenerateInline/);