test(discord): fix mock call arg typing

This commit is contained in:
Shakker
2026-02-17 13:55:40 +00:00
parent 1ee64d6c72
commit e2a93db430

View File

@@ -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;