Skip to content

Commit

Permalink
fix covered method cound field mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
pavyarov authored and pavyarov committed May 13, 2020
1 parent 4dcbaaf commit 4e4954e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) || {};

Expand All @@ -33,7 +33,7 @@ export const BuildStatistics = buildStatistics(({ className }: Props) => {
</Panel>
<Panel align="space-between">
<Label>Covered methods:</Label>
<Value>{totalMethodCount}</Value>
<Value>{coveredMethodCount}</Value>
</Panel>
<Panel align="space-between">
<Label>Risk methods to cover:</Label>
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Drill4J Browser Extension",
"version": "0.3.11",
"version": "0.3.12",
"background": {
"page": "background.html"
},
Expand Down

0 comments on commit 4e4954e

Please sign in to comment.