Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cross character #93

Merged
merged 2 commits into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export const mainSymbols = {
tick: '✔',
info: 'ℹ',
warning: '⚠',
cross: '',
cross: '',
squareSmall: '◻',
squareSmallFilled: '◼',
circle: '◯',
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ String where the Unicode symbols will be replaced with fallback symbols dependin
| tick | `✔` | `√` |
| info | `ℹ` | `i` |
| warning | `⚠` | `‼` |
| cross | `` | `×` |
| cross | `` | `×` |
Copy link
Collaborator

@ehmicky ehmicky Aug 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following test needs to be fixed as well.
I am surprised why this is not actually failing in CI? 🤔

figures/test.js

Lines 17 to 18 in 62b5c69

t.is(replaceSymbols('✔ ✖\n★ ◼'), result('✔ ✖\n★ ◼', '√ ×\n✶ ■'));
t.is(replaceSymbols('✔ ✖ ★ ◼'), result('✔ ✖ ★ ◼', '√ × ✶ ■'));

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, updated.

| square | `█` | |
| squareSmall | `◻` | `□` |
| squareSmallFilled | `◼` | `■` |
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ test('replaceSymbols()', t => {
t.is(replaceSymbols('foo'), 'foo');
t.is(replaceSymbols('?bar?'), '?bar?');
t.is(replaceSymbols('✔ ✔ ✔'), result('✔ ✔ ✔', '√ √ √'));
t.is(replaceSymbols('✔ \n★ ◼'), result('✔ \n★ ◼', '√ ×\n✶ ■'));
t.is(replaceSymbols('✔ ★ ◼'), result('✔ ★ ◼', '√ × ✶ ■'));
t.is(replaceSymbols('✔ \n★ ◼'), result('✔ \n★ ◼', '√ ×\n✶ ■'));
t.is(replaceSymbols('✔ ★ ◼'), result('✔ ★ ◼', '√ × ✶ ■'));
});

test('mainSymbols and windowsSymbols', t => {
Expand Down