From 4e2ee3b3a817d457d35ca9f487f574a066c679cc Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 11 Aug 2021 15:18:24 -0600 Subject: [PATCH] It helps to fix the other tests too --- spec/unit/matrix-client.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/unit/matrix-client.spec.js b/spec/unit/matrix-client.spec.js index 755abfb10..82e166f67 100644 --- a/spec/unit/matrix-client.spec.js +++ b/spec/unit/matrix-client.spec.js @@ -237,6 +237,7 @@ describe("MatrixClient", function() { it("should get (unstable) file trees with valid state", async () => { const roomId = "!room:example.org"; const mockRoom = { + getMyMembership: () => "join", currentState: { getStateEvents: (eventType, stateKey) => { if (eventType === EventType.RoomCreate) { @@ -296,6 +297,7 @@ describe("MatrixClient", function() { it("should not get (unstable) file trees with invalid create contents", async () => { const roomId = "!room:example.org"; const mockRoom = { + getMyMembership: () => "join", currentState: { getStateEvents: (eventType, stateKey) => { if (eventType === EventType.RoomCreate) { @@ -330,6 +332,7 @@ describe("MatrixClient", function() { it("should not get (unstable) file trees with invalid purpose/subtype contents", async () => { const roomId = "!room:example.org"; const mockRoom = { + getMyMembership: () => "join", currentState: { getStateEvents: (eventType, stateKey) => { if (eventType === EventType.RoomCreate) {