mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-03-28 21:23:07 +00:00
fix: update test assertions for ON CONFLICT saveNode SQL
Tests expected old INSERT OR REPLACE SQL, updated to match new INSERT INTO ... ON CONFLICT(node_type) DO UPDATE SET pattern. Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -120,7 +120,7 @@ class MockPreparedStatement implements PreparedStatement {
|
||||
}
|
||||
|
||||
// saveNode - INSERT OR REPLACE
|
||||
if (this.sql.includes('INSERT OR REPLACE INTO nodes')) {
|
||||
if (this.sql.includes('INSERT INTO nodes')) {
|
||||
this.run = vi.fn((...params: any[]): RunResult => {
|
||||
const nodes = this.mockData.get('community_nodes') || [];
|
||||
const nodeType = params[0];
|
||||
|
||||
Reference in New Issue
Block a user