mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 19:54:46 +00:00
test: dedupe doctor browser mock read
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user