From 4e4954e25de21b467139283a1110edfda2fc245d Mon Sep 17 00:00:00 2001 From: pavyarov Date: Wed, 13 May 2020 14:05:09 +0300 Subject: [PATCH] fix covered method cound field mapping --- package.json | 2 +- .../test-to-code-page/build-statistics/build-statistics.tsx | 4 ++-- src/manifest.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 4ffeb9f..d1573a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@drill4j/browser-extension", - "version": "0.3.11", + "version": "0.3.12", "license": "Apache-2.0", "scripts": { "build": "NODE_ENV=production webpack", diff --git a/src/content-script/pages/test-to-code-page/build-statistics/build-statistics.tsx b/src/content-script/pages/test-to-code-page/build-statistics/build-statistics.tsx index 5a682c9..fcdc41d 100644 --- a/src/content-script/pages/test-to-code-page/build-statistics/build-statistics.tsx +++ b/src/content-script/pages/test-to-code-page/build-statistics/build-statistics.tsx @@ -17,7 +17,7 @@ export const BuildStatistics = buildStatistics(({ className }: Props) => { const config = useAgentConfig() || {}; const { ratio = 0, - methodCount: { total: totalMethodCount = 0 } = {}, + methodCount: { total: totalMethodCount = 0, covered: coveredMethodCount = 0 } = {}, riskCount: { total: totalRiskCount = 0, covered: coveredRiskCount = 0 } = {}, }: any = useBuildCoverage(config.drillAdminUrl) || {}; @@ -33,7 +33,7 @@ export const BuildStatistics = buildStatistics(({ className }: Props) => { - {totalMethodCount} + {coveredMethodCount} diff --git a/src/manifest.json b/src/manifest.json index bc2e921..065e60d 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,6 +1,6 @@ { "name": "Drill4J Browser Extension", - "version": "0.3.11", + "version": "0.3.12", "background": { "page": "background.html" },