From 17d9d19c91f811203a8201c37a360ac371011384 Mon Sep 17 00:00:00 2001 From: "Timo K." Date: Fri, 28 Aug 2026 15:32:59 +0200 Subject: [PATCH] ObservableScope -> testScope --- src/state/SessionBehaviors.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/state/SessionBehaviors.test.ts b/src/state/SessionBehaviors.test.ts index bccfa0d0d..fca24767c 100644 --- a/src/state/SessionBehaviors.test.ts +++ b/src/state/SessionBehaviors.test.ts @@ -10,12 +10,12 @@ import { MatrixRTCSessionEvent } from "matrix-js-sdk/lib/matrixrtc"; import { EventEmitter } from "events"; import { createKeyRotationSuppressed$ } from "./SessionBehaviors"; -import { ObservableScope } from "./ObservableScope"; +import { testScope } from "../utils/test"; describe("SessionBehaviors", () => { describe("createKeyRotationSuppressed$", () => { it("emits initial value from isKeyRotationSuppressed and updates when KeyRotationSuppressedChanged event is emitted", () => { - const scope = new ObservableScope(); + const scope = testScope(); const emitter = new EventEmitter(); const mockSession = Object.assign(emitter, { on: vi.fn(), @@ -36,7 +36,6 @@ describe("SessionBehaviors", () => { emitter.emit(MatrixRTCSessionEvent.KeyRotationSuppressedChanged, false); expect(keyRotationSuppressed$.value).toBe(false); - scope.end(); }); }); });