From 425683015c84f8b433ddeba32e61c2613f8913cf Mon Sep 17 00:00:00 2001 From: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Date: Tue, 18 Aug 2026 20:44:02 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20implement=20issue=20#528=20=E2=80=94=20?= =?UTF-8?q?SonarCloud:=20test=20assertion=20quality=20(S5906)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/calendar-to-sheets/tests/index.test.js | 6 +++--- .../tests/performance-scalability.test.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/calendar-to-sheets/tests/index.test.js b/src/calendar-to-sheets/tests/index.test.js index 93009c2c..aa85c1f8 100644 --- a/src/calendar-to-sheets/tests/index.test.js +++ b/src/calendar-to-sheets/tests/index.test.js @@ -1509,10 +1509,10 @@ describe('Checkpoint logic (GAS only)', () => { const configs = freshCode.getConfigs() // Should fall back to legacy mode when array is empty - expect(configs.length).toBe(1) + expect(configs).toHaveLength(1) expect(configs[0].sheetName).toBe('Sheet1') - expect(configs[0].spreadsheetId).toBe(null) - expect(configs[0].calendarId).toBe(null) + expect(configs[0].spreadsheetId).toBeNull() + expect(configs[0].calendarId).toBeNull() delete global.SYNC_CONFIGS }) diff --git a/src/gmail-ai-classifier/tests/performance-scalability.test.js b/src/gmail-ai-classifier/tests/performance-scalability.test.js index b935c9cd..640d3228 100644 --- a/src/gmail-ai-classifier/tests/performance-scalability.test.js +++ b/src/gmail-ai-classifier/tests/performance-scalability.test.js @@ -121,7 +121,7 @@ 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) expect(duration).toBeLessThan(100) // 100 items benchmarked under 100ms }) })