mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: dedupe outbound media mock read
This commit is contained in:
@@ -123,7 +123,7 @@ function requireLoadWebMediaOptions(): Record<string, unknown> {
|
||||
}
|
||||
|
||||
function requireLoadWebMediaCall(): readonly unknown[] {
|
||||
const call = vi.mocked(loadWebMedia).mock.calls.at(0);
|
||||
const call = vi.mocked(loadWebMedia).mock.calls[0];
|
||||
if (!call) {
|
||||
throw new Error("Expected loadWebMedia to be called");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user