diff --git a/src/gmail-ai-classifier/tests/performance-scalability.test.js b/src/gmail-ai-classifier/tests/performance-scalability.test.js index b935c9cd..16f58db5 100644 --- a/src/gmail-ai-classifier/tests/performance-scalability.test.js +++ b/src/gmail-ai-classifier/tests/performance-scalability.test.js @@ -121,7 +121,12 @@ describe('Performance and Scalability Benchmarks', () => { const processed = processThreadBatch(threads, config, services) const duration = Date.now() - startTime - expect(processed.length).toBe(BATCH_SIZE) + expect(processed).toHaveLength(BATCH_SIZE) + processed.forEach((result, i) => { + expect(result.threadId).toBe(`msg_${i}`) + expect(result.status).toBe('classified') + expect(result.label).toBe(classification.canonical_label) + }) expect(duration).toBeLessThan(100) // 100 items benchmarked under 100ms }) })