mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 05:23:08 +00:00
fix: resolve TypeScript errors in test files
- Fixed MCP_MODE type assignment in console-manager.test.ts - Fixed prototype pollution test TypeScript errors in fixed-collection-validator.test.ts - All linting checks now pass 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -529,14 +529,14 @@ describe('FixedCollectionValidator', () => {
|
||||
};
|
||||
|
||||
// Add prototype property (should be ignored by hasOwnProperty check)
|
||||
Object.prototype.maliciousProperty = 'evil';
|
||||
(Object.prototype as any).maliciousProperty = 'evil';
|
||||
|
||||
try {
|
||||
const result = FixedCollectionValidator.validate('switch', config);
|
||||
expect(result.isValid).toBe(false);
|
||||
expect(result.errors).toHaveLength(2);
|
||||
} finally {
|
||||
delete Object.prototype.maliciousProperty;
|
||||
delete (Object.prototype as any).maliciousProperty;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user