test: dedupe doctor browser mock read

This commit is contained in:
Peter Steinberger
2026-05-13 01:11:45 +01:00
parent c6249e4809
commit bf92aa7bc0

View File

@@ -9,7 +9,7 @@ vi.mock("../plugin-sdk/facade-loader.js", () => ({
}));
function requireFirstNoteCall(noteFn: ReturnType<typeof vi.fn>): unknown[] {
const call = noteFn.mock.calls.at(0);
const call = noteFn.mock.calls[0];
if (!call) {
throw new Error("expected browser doctor note");
}