mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-07 22:44:16 +00:00
test(discord): fix mock call arg typing
This commit is contained in:
@@ -74,7 +74,8 @@ beforeEach(() => {
|
||||
function getLastRouteUpdate():
|
||||
| { sessionKey?: string; channel?: string; to?: string; accountId?: string }
|
||||
| undefined {
|
||||
const params = recordInboundSession.mock.calls.at(-1)?.[0] as
|
||||
const callArgs = recordInboundSession.mock.calls.at(-1) as unknown[] | undefined;
|
||||
const params = callArgs?.[0] as
|
||||
| {
|
||||
updateLastRoute?: {
|
||||
sessionKey?: string;
|
||||
|
||||
Reference in New Issue
Block a user