test: dedupe doctor security mock read

This commit is contained in:
Peter Steinberger
2026-05-13 01:57:55 +01:00
parent 6014aa5688
commit bd8e986bb2

View File

@@ -65,7 +65,7 @@ describe("noteSecurityWarnings gateway exposure", () => {
}
});
const lastMessage = () => String(note.mock.calls.at(-1)?.[0] ?? "");
const lastMessage = () => String(note.mock.calls[note.mock.calls.length - 1]?.[0] ?? "");
async function withExecApprovalsFile(
file: Record<string, unknown>,