Skip to content

Commit 4e2ee3b

Browse files
committed
It helps to fix the other tests too
1 parent 1f9fab9 commit 4e2ee3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/unit/matrix-client.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ describe("MatrixClient", function() {
237237
it("should get (unstable) file trees with valid state", async () => {
238238
const roomId = "!room:example.org";
239239
const mockRoom = {
240+
getMyMembership: () => "join",
240241
currentState: {
241242
getStateEvents: (eventType, stateKey) => {
242243
if (eventType === EventType.RoomCreate) {
@@ -296,6 +297,7 @@ describe("MatrixClient", function() {
296297
it("should not get (unstable) file trees with invalid create contents", async () => {
297298
const roomId = "!room:example.org";
298299
const mockRoom = {
300+
getMyMembership: () => "join",
299301
currentState: {
300302
getStateEvents: (eventType, stateKey) => {
301303
if (eventType === EventType.RoomCreate) {
@@ -330,6 +332,7 @@ describe("MatrixClient", function() {
330332
it("should not get (unstable) file trees with invalid purpose/subtype contents", async () => {
331333
const roomId = "!room:example.org";
332334
const mockRoom = {
335+
getMyMembership: () => "join",
333336
currentState: {
334337
getStateEvents: (eventType, stateKey) => {
335338
if (eventType === EventType.RoomCreate) {

0 commit comments

Comments
 (0)