Skip to content

Commit afb8387

Browse files
committed
refactor markdown grid
1 parent 33d861b commit afb8387

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lib/reports/markdown-details.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const markdownDetailsReport = async (reportData, reportOptions, options) => {
102102
name: 'Uncovered Lines'
103103
}];
104104

105-
const markdownGrid = Util.markdown({
105+
const markdownGrid = Util.markdownGrid({
106106
options: {
107107
name: reportData.name
108108
},

lib/reports/markdown-summary.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const markdownSummaryReport = async (reportData, reportOptions, options) => {
2727

2828
const columns = getSummaryColumns(color);
2929

30-
const markdownGrid = Util.markdown({
30+
const markdownGrid = Util.markdownGrid({
3131
options: {
3232
name: reportData.name
3333
},

lib/utils/markdown.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const renderHyphen = (column) => {
5252
return ':'.padEnd(width, '-');
5353
};
5454

55-
const markdown = (data) => {
55+
const markdownGrid = (data) => {
5656

5757
const options = {
5858
name: '',
@@ -129,4 +129,4 @@ const markdown = (data) => {
129129
};
130130

131131

132-
module.exports = markdown;
132+
module.exports = markdownGrid;

lib/utils/util.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const acornWalk = require('acorn-walk');
1010
const Share = require('../platform/share.js');
1111
const request = require('./request.js');
1212
const version = require('../../package.json').version;
13-
const markdown = require('./markdown.js');
13+
const markdownGrid = require('./markdown.js');
1414

1515
const { findUpSync, supportsColor } = require('../packages/monocart-coverage-vendor.js');
1616

@@ -31,7 +31,7 @@ const Util = {
3131
root: process.cwd(),
3232

3333
request,
34-
markdown,
34+
markdownGrid,
3535

3636
relativePath: function(p, root) {
3737
p = `${p}`;

0 commit comments

Comments
 (0)