From 5b680e88702a8c9017a2ff3c8b4f0d41360dce8e Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 30 Mar 2023 13:58:18 -0400 Subject: [PATCH] Fix computed-channel tests Signed-off-by: Sebastian Malton --- .../src/computed-channel/computed-channel.test.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/technical-features/messaging/computed-channel/src/computed-channel/computed-channel.test.tsx b/packages/technical-features/messaging/computed-channel/src/computed-channel/computed-channel.test.tsx index b1c648176d..6bea2ca76d 100644 --- a/packages/technical-features/messaging/computed-channel/src/computed-channel/computed-channel.test.tsx +++ b/packages/technical-features/messaging/computed-channel/src/computed-channel/computed-channel.test.tsx @@ -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", () => { const duplicateChannelObserverInjectable = getInjectable({ id: "some-duplicate-channel-observer",