From 34811eaf69d1f0907b6181c9daf990e3eaeeb17b Mon Sep 17 00:00:00 2001 From: czlonkowski <56956555+czlonkowski@users.noreply.github.com> Date: Fri, 10 Oct 2025 13:58:01 +0200 Subject: [PATCH] fix: update handleHealthCheck test for environment-aware debugging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update test expectation to include troubleshooting array in error response details. This field was added as part of environment-aware debugging improvements in PR #303. The handleHealthCheck error response now includes troubleshooting steps to help users diagnose API connectivity issues. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- tests/unit/mcp/handlers-n8n-manager.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unit/mcp/handlers-n8n-manager.test.ts b/tests/unit/mcp/handlers-n8n-manager.test.ts index 20287d5..59fd23b 100644 --- a/tests/unit/mcp/handlers-n8n-manager.test.ts +++ b/tests/unit/mcp/handlers-n8n-manager.test.ts @@ -1027,6 +1027,12 @@ describe('handlers-n8n-manager', () => { details: { apiUrl: 'https://n8n.test.com', hint: 'Check if n8n is running and API is enabled', + troubleshooting: [ + '1. Verify n8n instance is running', + '2. Check N8N_API_URL is correct', + '3. Verify N8N_API_KEY has proper permissions', + '4. Run n8n_diagnostic for detailed analysis', + ], }, }); });