mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix computed-channel tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
132c51018b
commit
5b680e8870
@ -493,14 +493,6 @@ const TestComponent = observer(({ someComputed }: { someComputed: IComputedValue
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("when accessing the computed value outside of reactive context, throws", () => {
|
|
||||||
expect(() => {
|
|
||||||
computedTestChannel.get();
|
|
||||||
}).toThrow(
|
|
||||||
'Tried to access value of computed channel "some-channel-id" outside of reactive context. This is not possible, as the value is acquired asynchronously sometime *after* being observed. Not respecting that, the value could be stale.',
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("given duplicate channel observer for the channel is registered, when the computed channel is observer, throws", () => {
|
it("given duplicate channel observer for the channel is registered, when the computed channel is observer, throws", () => {
|
||||||
const duplicateChannelObserverInjectable = getInjectable({
|
const duplicateChannelObserverInjectable = getInjectable({
|
||||||
id: "some-duplicate-channel-observer",
|
id: "some-duplicate-channel-observer",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user