Skip to content

Commit

Permalink
Merge pull request #16 from JakeSidSmith/adjust-diff-colors
Browse files Browse the repository at this point in the history
Adjust diff colors
  • Loading branch information
JakeSidSmith authored Mar 6, 2020
2 parents 00d20be + 7fa5c42 commit 118e5f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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
@@ -1,6 +1,6 @@
{
"name": "@jakesidsmith/tsassert",
"version": "0.2.4",
"version": "0.2.5",
"description": "Check TypeScript types against assertion comments",
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions src/assert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ const assert = (tree: Tree) => {
.diffWordsWithSpace(error.expected, error.received)
.map(part => {
if (part.added) {
return chalk.greenBright(part.value);
return chalk.bgGreenBright(chalk.black(part.value));
}

if (part.removed) {
return chalk.redBright(part.value);
return chalk.bgRedBright(chalk.black(part.value));
}

return part.value;
Expand Down

0 comments on commit 118e5f9

Please sign in to comment.