fix routes
This commit is contained in:
@@ -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/);
|
||||
|
||||
Reference in New Issue
Block a user