mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 13:33:11 +00:00
fix: resolve type errors from tags parameter change
Fixed type errors caused by changing WorkflowListParams.tags from string[] to string: 1. cleanup-helpers.ts: Changed tags: [tag] to tags: tag (line 221) 2. n8n-api-client.test.ts: Changed tags: ['test'] to tags: 'test,production' (line 384) 3. Added unit tests for handleDeleteWorkflow and handleListWorkflows (100% coverage) All tests pass, lint clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -381,12 +381,12 @@ describe('N8nApiClient', () => {
|
||||
});
|
||||
|
||||
it('should list workflows with custom params', async () => {
|
||||
const params = { limit: 10, active: true, tags: ['test'] };
|
||||
const params = { limit: 10, active: true, tags: 'test,production' };
|
||||
const response = { data: [], nextCursor: null };
|
||||
mockAxiosInstance.get.mockResolvedValue({ data: response });
|
||||
|
||||
|
||||
const result = await client.listWorkflows(params);
|
||||
|
||||
|
||||
expect(mockAxiosInstance.get).toHaveBeenCalledWith('/workflows', { params });
|
||||
expect(result).toEqual(response);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user