Skip to content

Commit

Permalink
BREAKING CHANGE: Update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeSimoes committed Oct 18, 2023
1 parent 895b7a3 commit 81a7237
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion utils/__snapshots__/log.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ exports[`Test utils/log.js Check formating of each error severety send to consol

exports[`Test utils/log.js Check formating of each error severety send to console log [log] 1`] = `"[utils/log.test.js] ⚠ My errorExtra error information"`;

exports[`Test utils/log.js Check formating of each error severety send to console log [success] 1`] = `"[2m[utils/log.test.js] [0m[2m 💪 -> [0m[32mMy error[0m[2mExtra error information[0m"`;
exports[`Test utils/log.js Check formating of each error severety send to console log [success] 1`] = `"[2m[utils/log.test.js] [0m[2m -> [0m[32mMy error[0m[2mExtra error information[0m"`;

exports[`Test utils/log.js Check formating of each error severety send to console log [warning] 1`] = `"[utils/log.test.js] ⚠ My errorExtra error information"`;
4 changes: 2 additions & 2 deletions utils/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const colorOptions = {
const color = (c, str, bg = colorOptions.reset) => `${colorOptions[c]}${str}${bg}`;

const emojis = {
error: [' '],
success: [' 💪 ']
error: [' ! '],
success: [' '],
};

const random = array => array[Math.floor(Math.random() * array.length)];
Expand Down

0 comments on commit 81a7237

Please sign in to comment.