Skip to content

Commit

Permalink
yes
Browse files Browse the repository at this point in the history
  • Loading branch information
kilianc committed May 15, 2024
1 parent 049a06f commit 0b9956e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/check-threshold.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const normalizePath = require('./normalize-path')
const checkThreshold = module.exports = async ({ threshold, path, revision }) => {
path = normalizePath(path)

const coverageText = fs.readFileSync(`go-cover/${path}revisions/${revision}.txt`, 'utf8').split('\n').slice(0, -1)
const coverageText = fs.readFileSync(`go-cover/${path}/revisions/${revision}.txt`, 'utf8').split('\n').slice(0, -1)
const coverageTextSummary = coverageText[coverageText.length-1].split('\t').pop()

const coverage = parseFloat(coverageTextSummary.replace('%', ''), 10)
Expand Down

0 comments on commit 0b9956e

Please sign in to comment.