1
0
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:
Sebastian Malton 2023-03-30 13:58:18 -04:00
parent 132c51018b
commit 5b680e8870

View File

@ -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",