Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
fix(project): remove logging color and updates
Browse files Browse the repository at this point in the history
  • Loading branch information
olavoparno committed Jul 8, 2020
1 parent 831db61 commit 9470344
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# [1.6.0](https://github.com/olavoparno/jest-badges-readme/compare/v1.5.0...v1.6.0) (2020-07-08)


### Bug Fixes

* **project:** remove logging color and updates ([831db61](https://github.com/olavoparno/jest-badges-readme/commit/831db610a54a9a0825da324a4db86a96aa4c1c04))



# [1.5.0](https://github.com/olavoparno/jest-badges-readme/compare/v1.4.2...v1.5.0) (2020-07-07)


Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"url": "https://github.com/olavoparno"
},
"description": "Creates a group of coverage badges from Jest into your README.",
"version": "1.5.0",
"version": "1.6.0",
"homepage": "https://github.com/olavoparno/jest-badges-readme#readme",
"repository": {
"type": "git",
Expand Down
8 changes: 5 additions & 3 deletions src/helper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export default class Helper {
return true;
}
console.log(`Error: ${readmeTemplateFile} OR ${readmeFile} files were not found.`);
console.log(`You must have a ${readmeTemplateFile} OR a valid ${readmeFile} file created. Please read the documentation.`);
console.log(
`You must have a ${readmeTemplateFile} OR a valid ${readmeFile} file created. Please read the documentation.`,
);
return false;
};

Expand All @@ -47,7 +49,7 @@ export default class Helper {

const valueToChangeIndex = valueToChangeStart.indexOf(')');
const valueToChangeFinal = valueToChangeStart.substring(0, valueToChangeIndex);

const newUrl = `${url} "Make me better!"`;
const isItTheSame = valueToChangeFinal.localeCompare(newUrl);

Expand Down Expand Up @@ -97,7 +99,7 @@ export default class Helper {

const valueToChangeIndex = valueToChangeStart.indexOf(')');
const valueToChangeFinal = valueToChangeStart.substring(0, valueToChangeIndex);

const newUrl = `${url} "Building Status"`;

readmeFileData = readmeFileData.replace(valueToChangeFinal, newUrl);
Expand Down

0 comments on commit 9470344

Please sign in to comment.