Skip to content

Commit eb6be84

Browse files
committed
style(testscheduler): update code lint, hint friendly
1 parent 54b321a commit eb6be84

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/scheduler/TestScheduler.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,6 @@ class TestScheduler extends VirtualTimeScheduler {
1919
super(VirtualAction, Number.POSITIVE_INFINITY);
2020
}
2121

22-
private materializeInnerObservable<T>(observable: Observable<any>, outerFrame: number): Array<TestMessage<T>> {
23-
const innerObservableMetadata: Array<TestMessage<T>> = [];
24-
const pushMetaData = (notification: Notification<T>) =>
25-
innerObservableMetadata.push(new TestMessageValue<T>(this.frame - outerFrame, notification));
26-
27-
observable.subscribe(
28-
value => pushMetaData(Notification.createNext(value)),
29-
err => pushMetaData(Notification.createError(err)),
30-
() => pushMetaData(Notification.createComplete())
31-
);
32-
33-
return innerObservableMetadata;
34-
}
35-
3622
public getMarbles<T = string>(observable: Observable<T>, unsubscriptionMarbles: string | null = null) {
3723
if (this.autoFlush) {
3824
throw new Error('not implemented');
@@ -102,6 +88,20 @@ class TestScheduler extends VirtualTimeScheduler {
10288
this.hotObservables.push(subject);
10389
return subject;
10490
}
91+
92+
private materializeInnerObservable<T>(observable: Observable<any>, outerFrame: number): Array<TestMessage<T>> {
93+
const innerObservableMetadata: Array<TestMessage<T>> = [];
94+
const pushMetaData = (notification: Notification<T>) =>
95+
innerObservableMetadata.push(new TestMessageValue<T>(this.frame - outerFrame, notification));
96+
97+
observable.subscribe(
98+
value => pushMetaData(Notification.createNext(value)),
99+
err => pushMetaData(Notification.createError(err)),
100+
() => pushMetaData(Notification.createComplete())
101+
);
102+
103+
return innerObservableMetadata;
104+
}
105105
}
106106

107107
export { TestScheduler };

0 commit comments

Comments
 (0)