test: dedupe matrix action mock read

This commit is contained in:
Peter Steinberger
2026-05-13 09:25:59 +01:00
parent 06e04291e0
commit 6c2e0bdc0c

View File

@@ -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");
}