mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-16 18:34:18 +00:00
test: dedupe outbound send mock read
This commit is contained in:
@@ -126,7 +126,7 @@ function expectSingleCallFirstArg(
|
||||
label = "mock first argument",
|
||||
): Record<string, unknown> {
|
||||
expect(mock.mock.calls).toHaveLength(1);
|
||||
const [firstArg] = mock.mock.calls.at(0) ?? [];
|
||||
const [firstArg] = mock.mock.calls[0] ?? [];
|
||||
return requireRecord(firstArg, label);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user