From 35b7db8cc18da7205ca209069a90a4d8bc90b9e4 Mon Sep 17 00:00:00 2001 From: Timo Date: Thu, 9 Jan 2025 18:25:06 +0100 Subject: [PATCH] review - fix tests using private membershipManager props --- spec/unit/matrixrtc/MatrixRTCSession.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/unit/matrixrtc/MatrixRTCSession.spec.ts b/spec/unit/matrixrtc/MatrixRTCSession.spec.ts index 80510d53cc..fd843a0e85 100644 --- a/spec/unit/matrixrtc/MatrixRTCSession.spec.ts +++ b/spec/unit/matrixrtc/MatrixRTCSession.spec.ts @@ -485,10 +485,10 @@ describe("MatrixRTCSession", () => { // needed to advance the mock timers properly // depends on myMembershipManager being created const scheduledDelayDisconnection = new Promise((resolve) => { - const myMemManager = (sess as any).myMembershipManager; - const originalFn: () => void = myMemManager.scheduleDelayDisconnection; - myMemManager.scheduleDelayDisconnection = jest.fn(() => { - originalFn.call(myMemManager); + const membershipManager = (sess as any).membershipManager; + const originalFn: () => void = membershipManager.scheduleDelayDisconnection; + membershipManager.scheduleDelayDisconnection = jest.fn(() => { + originalFn.call(membershipManager); resolve(); }); });