mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-03-20 17:33:08 +00:00
fix: update tests for template compression, pagination, and quality filtering
- Fix parameter validation tests to expect mode parameter in getTemplate calls - Update database utils tests to use totalViews > 10 for quality filter - Add comprehensive tests for template service functionality - Fix integration tests for new pagination parameters All CI tests now passing after template system enhancements
This commit is contained in:
@@ -371,7 +371,7 @@ describe('Parameter Validation', () => {
|
||||
templateId: 123
|
||||
});
|
||||
|
||||
expect(mockGetTemplate).toHaveBeenCalledWith(123);
|
||||
expect(mockGetTemplate).toHaveBeenCalledWith(123, 'full');
|
||||
});
|
||||
|
||||
it('should convert string templateId to number', async () => {
|
||||
@@ -381,7 +381,7 @@ describe('Parameter Validation', () => {
|
||||
templateId: '123'
|
||||
});
|
||||
|
||||
expect(mockGetTemplate).toHaveBeenCalledWith(123);
|
||||
expect(mockGetTemplate).toHaveBeenCalledWith(123, 'full');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user