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.