@@ -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