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:
czlonkowski
2025-09-14 15:42:35 +02:00
parent e7895d2e01
commit 3b767c798c
8 changed files with 1425 additions and 16 deletions

View File

@@ -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');
});
});
});