add untested function

This commit is contained in:
Valere
2025-11-26 19:28:44 +01:00
parent 2b3e2f6188
commit c078dd87fa

View File

@@ -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$<T>(input$: Behavior<T>): Observable<T> {
// 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.