Skip to content

Commit 81ada87

Browse files
authored
Update index.js
1 parent 1e02a08 commit 81ada87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const codeCoverageData = codeCoverageString
4343

4444
const dataIsValid = codeCoverageData.every(el => {
4545
const t1 = ['Statements', 'Branches', 'Functions', 'Lines'].includes(el.coverageType)
46-
const t2 = el.coverageCount.split('/')[0] <= el.coverageCount.split('/')[1]
46+
const t2 = parseInt(el.coverageCount.split('/')[0]) <= parseInt(el.coverageCount.split('/')[1])
4747
const t3 = !!parseFloat(el.coveragePercentage) && el.coveragePercentage.includes('%')
4848
return t1 && t2 && t3
4949
})

0 commit comments

Comments
 (0)