mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-16 18:34:18 +00:00
test: dedupe plugin approval mock read
This commit is contained in:
@@ -73,7 +73,7 @@ type DeliveryArgs = {
|
||||
};
|
||||
|
||||
function deliveryArgs(deliver: ReturnType<typeof vi.fn>): DeliveryArgs | undefined {
|
||||
return deliver.mock.calls.at(0)?.at(0) as DeliveryArgs | undefined;
|
||||
return deliver.mock.calls[0]?.at(0) as DeliveryArgs | undefined;
|
||||
}
|
||||
|
||||
function firstDeliveredPayload(deliver: ReturnType<typeof vi.fn>) {
|
||||
|
||||
Reference in New Issue
Block a user