test: remove low-value mirrored-text media-filename unit case
This commit is contained in:
parent
b156aafab9
commit
7a4c131d6b
@ -16,10 +16,7 @@ import {
|
||||
validateSessionId,
|
||||
} from "./paths.js";
|
||||
import { resolveSessionResetPolicy } from "./reset.js";
|
||||
import {
|
||||
appendAssistantMessageToSessionTranscript,
|
||||
resolveMirroredTranscriptText,
|
||||
} from "./transcript.js";
|
||||
import { appendAssistantMessageToSessionTranscript } from "./transcript.js";
|
||||
|
||||
describe("session path safety", () => {
|
||||
it("rejects unsafe session IDs", () => {
|
||||
@ -149,16 +146,6 @@ describe("session store lock (Promise chain mutex)", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("resolveMirroredTranscriptText", () => {
|
||||
it("prefers media filenames over text", () => {
|
||||
const result = resolveMirroredTranscriptText({
|
||||
text: "caption here",
|
||||
mediaUrls: ["https://example.com/files/report.pdf?sig=123"],
|
||||
});
|
||||
expect(result).toBe("report.pdf");
|
||||
});
|
||||
});
|
||||
|
||||
describe("appendAssistantMessageToSessionTranscript", () => {
|
||||
let tempDir: string;
|
||||
let storePath: string;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user