mirror of
https://github.com/vector-im/element-call.git
synced 2026-02-08 04:19:11 +00:00
Move 'behavior' to be a method on ObservableScope
This commit is contained in:
@@ -124,10 +124,11 @@ export function withTestScheduler(
|
||||
const initialValue =
|
||||
values === undefined ? (initialMarble as T) : values[initialMarble];
|
||||
// The remainder of the marble diagram should start on frame 1
|
||||
return helpers
|
||||
.hot(`-${marbles.slice(initialMarbleIndex + 1)}`, values, error)
|
||||
.pipe(startWith(initialValue))
|
||||
.behavior(scope);
|
||||
return scope.behavior(
|
||||
helpers
|
||||
.hot(`-${marbles.slice(initialMarbleIndex + 1)}`, values, error)
|
||||
.pipe(startWith(initialValue)),
|
||||
);
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user