test: dedupe bootstrap size mock read

This commit is contained in:
Peter Steinberger
2026-05-13 01:30:54 +01:00
parent 8504029d73
commit 963207d265

View File

@@ -52,7 +52,7 @@ describe("noteBootstrapFileSize", () => {
});
await noteBootstrapFileSize({} as OpenClawConfig);
expect(note).toHaveBeenCalledTimes(1);
const [message, title] = note.mock.calls.at(0) ?? [];
const [message, title] = note.mock.calls[0] ?? [];
expect(title).toBe("Bootstrap file size");
expect(message).toBe(
[