diff --git a/test/mocks/appservicemock.ts b/test/mocks/appservicemock.ts
index 4de03ee482d1eb6f56606cb805693af62dc7a4e7..28eb3935b9a4fa5e66f89604278a8b6f11bcf74b 100644
--- a/test/mocks/appservicemock.ts
+++ b/test/mocks/appservicemock.ts
@@ -167,7 +167,7 @@ class IntentMock extends AppserviceMockBase {
         this.funcCalled("sendText", roomId, body);
     }
 
-    public sendEvent(roomId: string, content: any) {
+    public sendEvent(roomId: string, content: Record<string, unknown>) {
         this.funcCalled("sendEvent", roomId, content);
     }
 
@@ -218,7 +218,7 @@ class MatrixClientMock extends AppserviceMockBase {
         this.funcCalled("kickUser", roomId, userId);
     }
 
-    public sendStateEvent(roomId: string, type: string, stateKey: string, content: {}) {
+    public sendStateEvent(roomId: string, type: string, stateKey: string, content: Record<string, unknown>) {
         this.funcCalled("sendStateEvent", roomId, type, stateKey, content);
     }