mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: dedupe matrix action mock read
This commit is contained in:
@@ -15,7 +15,7 @@ const { matrixMessageActions } = await import("./actions.js");
|
||||
const profileAction = "set-profile" as ChannelMessageActionContext["action"];
|
||||
|
||||
function matrixActionCall() {
|
||||
const call = mocks.handleMatrixAction.mock.calls.at(0);
|
||||
const call = mocks.handleMatrixAction.mock.calls[0];
|
||||
if (!call) {
|
||||
throw new Error("expected handleMatrixAction call");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user