Skip to content

Commit

Permalink
chore: table alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
rgwozdz committed Feb 19, 2024
1 parent 2bdbdb2 commit 36d9ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/format-branch-coverage-changes.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const rows = Object.entries(coverageSummary)

const headers = ['File Path', 'Statements', 'Branches', 'Functions', 'Lines'];
const markdown = json2md([{ h2: 'Coverage Report'}, { table: { headers, rows } }]);
const aligned = markdown.replace('| --- | ---------- | -------- | --------- | ----- |', '| --- | ----------: | --------: | ---------: | -----: |');
const aligned = markdown.replace('| --------- | ---------- | -------- | --------- | ----- |', '| ---------: | ----------: | --------: | ---------: | -----: |');
writeFileSync('ci/branch-coverage-changes.md', aligned, 'utf8');

function getValue(input) {
Expand Down

0 comments on commit 36d9ba5

Please sign in to comment.