Skip to content

Commit

Permalink
chore: get head results from uploaded report
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdevpereira committed Sep 27, 2022
1 parent 46a61e6 commit 34eda53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const COVERAGE_OUTPUT_FOLDER = './coverage';

// Read current head results from disk
const headResult = await getReport({ reportUrl: `${UPLOAD_URL}/coverage-summary.json` })
const headTotals = headResult.data.total
const headTotals = headResult.total
const headPercentages = [
headTotals.lines.pct,
headTotals.statements.pct,
Expand All @@ -147,7 +147,7 @@ const COVERAGE_OUTPUT_FOLDER = './coverage';
let basePercentages = [0, 0, 0, 0]
let baseAvgPercentage = 0
if (baseResult) {
baseTotals = baseResult.data.total
baseTotals = baseResult.total
basePercentages = [
baseTotals.lines.pct,
baseTotals.statements.pct,
Expand Down

0 comments on commit 34eda53

Please sign in to comment.