Skip to content

Commit 09afcc9

Browse files
committed
feat(rxsandboxinstance): export scheduler instance
1 parent 4956f30 commit 09afcc9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/RxSandboxInstance.ts

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ type expectedObservable = <T = string>(
1515
type expectedSubscription = (marble: string) => SubscriptionLog;
1616

1717
type RxSandboxInstance = {
18+
/**
19+
* Test scheduler created for sandbox instance
20+
*/
21+
scheduler: TestScheduler;
1822
/**
1923
* Creates a hot observable using marble diagram DSL, or TestMessage.
2024
*/

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const rxSandbox: RxSandbox = {
3131
const scheduler = new TestScheduler(autoFlush, frameTimeFactor, maxFrameValue);
3232

3333
return {
34+
scheduler,
3435
hot: scheduler.createHotObservable.bind(scheduler) as typeof scheduler.createHotObservable,
3536
cold: scheduler.createColdObservable.bind(scheduler) as typeof scheduler.createColdObservable,
3637
flush: scheduler.flush.bind(scheduler) as typeof scheduler.flush,

0 commit comments

Comments
 (0)