From c078dd87fa932d0e36ee9a4f21a990a60cd44e95 Mon Sep 17 00:00:00 2001 From: Valere Date: Wed, 26 Nov 2025 19:28:44 +0100 Subject: [PATCH] add untested function --- src/state/ObservableScope.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/state/ObservableScope.ts b/src/state/ObservableScope.ts index 87a95ba5..5a8e1525 100644 --- a/src/state/ObservableScope.ts +++ b/src/state/ObservableScope.ts @@ -18,7 +18,9 @@ import { share, take, takeUntil, + tap, } from "rxjs"; +import { logger } from "matrix-js-sdk/lib/logger"; import { type Behavior } from "./Behavior"; @@ -156,6 +158,17 @@ export class ObservableScope { }); } + public unTestedMethod$(input$: Behavior): Observable { + // This method is intentionally left untested. + return input$.pipe( + map((value) => value), + distinctUntilChanged(), + tap((value) => { + logger.log(`Value changed: ${value}`); + }), + ); + } + /** * Splits a Behavior of objects with static properties into an object with * Behavior properties.