mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-21 02:55:16 +00:00
test: dedupe doctor browser mock read
This commit is contained in:
parent
c6249e4809
commit
bf92aa7bc0
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue