add untested function
This commit is contained in:
@@ -18,7 +18,9 @@ import {
|
|||||||
share,
|
share,
|
||||||
take,
|
take,
|
||||||
takeUntil,
|
takeUntil,
|
||||||
|
tap,
|
||||||
} from "rxjs";
|
} from "rxjs";
|
||||||
|
import { logger } from "matrix-js-sdk/lib/logger";
|
||||||
|
|
||||||
import { type Behavior } from "./Behavior";
|
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
|
* Splits a Behavior of objects with static properties into an object with
|
||||||
* Behavior properties.
|
* Behavior properties.
|
||||||
|
|||||||
Reference in New Issue
Block a user