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

@@ -163,7 +163,8 @@ describe('Database Integration Tests', () => {
expect(template!.name).toBe('AI Content Generator');
// Parse workflow JSON
const workflow = JSON.parse(template!.workflow_json);
expect(template!.workflow_json).toBeTruthy();
const workflow = JSON.parse(template!.workflow_json!);
expect(workflow.nodes).toHaveLength(3);
expect(workflow.nodes[0].name).toBe('Webhook');
expect(workflow.nodes[1].name).toBe('OpenAI');