The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: cover the geocoding 'location not found' branch in the weather test
teknium104ded3b14588
diff --git a/ui-tui/src/__tests__/weatherApp.test.ts b/ui-tui/src/__tests__/weatherApp.test.tsindex 379183e6095..547864e6ec9 100644--- a/ui-tui/src/__tests__/weatherApp.test.ts+++ b/ui-tui/src/__tests__/weatherApp.test.ts@@ -154,6 +154,17 @@ describe('weather reference app (async contract)', () => {launchWidget('weather', 'nowhere')await vi.waitFor(() => expect(activeState()?.phase.kind).toBe('error'))expect(activeState()?.phase).toMatchObject({ message: expect.stringContaining('503') })++ // Geocoding succeeds at the HTTP level but matches nothing: surfaced as an error, not a hang.+ resetOverlayState()+ vi.stubGlobal(+ 'fetch',+ vi.fn(async () => ({ json: async () => ({ results: [] }), ok: true }))+ )++ launchWidget('weather', 'nowhere')+ await vi.waitFor(() => expect(activeState()?.phase.kind).toBe('error'))+ expect(activeState()?.phase).toMatchObject({ message: expect.stringContaining('location not found') })})it('r refreshes; Esc/q/Enter close', () => {