Skip to content

Commit

Permalink
docs: update readme and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
olavoparno committed Dec 4, 2021
1 parent 3f37f61 commit 63365af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| Statements | Branches | Functions | Lines |
| ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| ![Statements](https://img.shields.io/badge/statements-90.59%25-brightgreen.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-56.25%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-98%25-brightgreen.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-90.96%25-brightgreen.svg?style=flat) |
| ![Statements](https://img.shields.io/badge/statements-100%25-brightgreen.svg?style=flat&logo=jest) | ![Branches](https://img.shields.io/badge/branches-100%25-brightgreen.svg?style=flat&logo=jest) | ![Functions](https://img.shields.io/badge/functions-100%25-brightgreen.svg?style=flat&logo=jest) | ![Lines](https://img.shields.io/badge/lines-100%25-brightgreen.svg?style=flat&logo=jest) |

---

Expand Down
4 changes: 2 additions & 2 deletions src/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ export const writeNewReadme =
};

export const editReadme = async (): Promise<void> => {
logInfo('Info: 2. Editor process started');
logInfo('Editor process started');

const readmeFile = await readFileAsync(getReadmePath(readmePathConst), 'utf-8');
const coverageFile = await readFileAsync(getCoveragePath(coveragePathConst), 'utf8');

return Promise.resolve(getReadmeHashes(readmeFile))
.then(getNewReadme(readmeFile, coverageFile))
.then(writeNewReadme(getReadmePath(readmePathConst)))
.then(() => logInfo('Info: 2. Editor process ended'));
.then(() => logInfo('Editor process ended'));
};
4 changes: 2 additions & 2 deletions src/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const doesReadmeHashExist = (readmePath: string): Promise<boolean | strin
};

export const checkConfig = (): Promise<void> => {
logInfo('Info: 1. Config check process started');
logInfo('Config check process started');

return doesReadmeFileExistWithRightPermissions(readmePathConst)
.then(() => {
Expand All @@ -81,5 +81,5 @@ export const checkConfig = (): Promise<void> => {
.then(() => {
logInfo('- Readme hashes exist... ✔️.');
})
.then(() => logInfo('Info: 1. Config check process ended'));
.then(() => logInfo('Config check process ended'));
};

0 comments on commit 63365af

Please sign in to comment.