Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed app/src/features/conversations/aui/ConnectionStateBanner.test.tsx

Steven Enamakelc4a1b5755e8e
diff --git a/app/src/features/conversations/aui/ConnectionStateBanner.test.tsx b/app/src/features/conversations/aui/ConnectionStateBanner.test.tsx
index 9123cf51b8..7c006571a1 100644
--- a/app/src/features/conversations/aui/ConnectionStateBanner.test.tsx
+++ b/app/src/features/conversations/aui/ConnectionStateBanner.test.tsx
@@ -115,6 +115,16 @@ describe('ConnectionStateBanner', () => {
expect(connect).not.toHaveBeenCalled();
});
+ it('renders nothing under a host store that has no socket slice', () => {
+ const store = configureStore({ reducer: { other: (state: number = 0) => state } });
+ const { container } = render(
+ <Provider store={store}>
+ <ConnectionStateBanner />
+ </Provider>
+ );
+ expect(container).toBeEmptyDOMElement();
+ });
+
it('renders nothing outside a Redux store (standalone thread renders)', () => {
const { container } = render(<ConnectionStateBanner />);
expect(container).toBeEmptyDOMElement();