diff --git a/README.md b/README.md index 86cb463..8c95ca2 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@
GitHub Workflow Status (CI) Codecov - SonarCloud + SonarCloud
diff --git a/tests/crowdin-progress.test.js b/tests/crowdin-progress.test.js index 6bb38ce..f02b3e9 100644 --- a/tests/crowdin-progress.test.js +++ b/tests/crowdin-progress.test.js @@ -505,7 +505,7 @@ describe('buildProjectTable', () => { it('produces an empty table body when entries array is empty', () => { const table = buildProjectTable(makeProject(), []); const lines = table.split('\n'); - expect(lines.length).toBe(2); + expect(lines).toHaveLength(2); }); it('handles an entry with null language gracefully', () => { diff --git a/tests/sync-crowdin-issues.test.js b/tests/sync-crowdin-issues.test.js index 7f91c1a..363aa0e 100644 --- a/tests/sync-crowdin-issues.test.js +++ b/tests/sync-crowdin-issues.test.js @@ -201,7 +201,7 @@ describe('buildIssueTitle', () => { it('truncates long text to 72 characters', () => { const issue = { text: 'a'.repeat(100) }; - expect(buildIssueTitle(issue).length).toBe(72); + expect(buildIssueTitle(issue)).toHaveLength(72); }); it('collapses newlines to spaces', () => {