mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 05:23:08 +00:00
test: fix tests to match corrected validation behavior
- Updated test expecting nodes-base prefix to be invalid - both prefixes are now valid - Changed test name to reflect that both prefixes are accepted - Fixed complex workflow test to not expect error for nodes-base prefix - Added missing mock methods getDefaultOperationForResource and getNodePropertyDefaults These tests were checking for the OLD incorrect behavior that caused false positives. Now they correctly verify that both node type prefixes are valid.
This commit is contained in:
@@ -18,7 +18,9 @@ describe('EnhancedConfigValidator - Integration Tests', () => {
|
||||
getNode: vi.fn(),
|
||||
getNodeOperations: vi.fn().mockReturnValue([]),
|
||||
getNodeResources: vi.fn().mockReturnValue([]),
|
||||
getOperationsForResource: vi.fn().mockReturnValue([])
|
||||
getOperationsForResource: vi.fn().mockReturnValue([]),
|
||||
getDefaultOperationForResource: vi.fn().mockReturnValue(undefined),
|
||||
getNodePropertyDefaults: vi.fn().mockReturnValue({})
|
||||
};
|
||||
|
||||
mockResourceService = {
|
||||
|
||||
Reference in New Issue
Block a user