mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-04-05 00:53:07 +00:00
fix: relax SQL assertion in outputs test to match ON CONFLICT pattern
Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -55,18 +55,9 @@ describe('NodeRepository - Outputs Handling', () => {
|
|||||||
|
|
||||||
repository.saveNode(node);
|
repository.saveNode(node);
|
||||||
|
|
||||||
expect(mockDb.prepare).toHaveBeenCalledWith(`
|
expect(mockDb.prepare).toHaveBeenCalledWith(
|
||||||
INSERT INTO nodes (
|
expect.stringContaining('INSERT INTO nodes')
|
||||||
node_type, package_name, display_name, description,
|
);
|
||||||
category, development_style, is_ai_tool, is_trigger,
|
|
||||||
is_webhook, is_versioned, is_tool_variant, tool_variant_of,
|
|
||||||
has_tool_variant, version, documentation,
|
|
||||||
properties_schema, operations, credentials_required,
|
|
||||||
outputs, output_names,
|
|
||||||
is_community, is_verified, author_name, author_github_url,
|
|
||||||
npm_package_name, npm_version, npm_downloads, community_fetched_at
|
|
||||||
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
||||||
`);
|
|
||||||
|
|
||||||
expect(mockStatement.run).toHaveBeenCalledWith(
|
expect(mockStatement.run).toHaveBeenCalledWith(
|
||||||
'nodes-base.splitInBatches',
|
'nodes-base.splitInBatches',
|
||||||
|
|||||||
Reference in New Issue
Block a user