Skip to content

Commit

Permalink
Improve the star figure (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Mar 24, 2021
1 parent bac7335 commit 745987c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const main = {
const fallback = {
tick: '√',
cross: '×',
star: '*',
star: '',
square: '█',
squareSmall: '[ ]',
squareSmallFilled: '[█]',
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Symbols to use when running on Windows.
| ------------------ | :---------: | :-----: |
| tick |||
| cross || × |
| star || * |
| star || |
| 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 @@ -13,8 +13,8 @@ test('fallbacks', t => {
t.is(figures('foo'), 'foo');
t.is(figures('?bar?'), '?bar?');
t.is(figures('✔ ✔ ✔'), result('✔ ✔ ✔', '√ √ √'));
t.is(figures('✔ ✖\n★ ▇'), result('✔ ✖\n★ ▇', '√ ×\n* █'));
t.is(figures('✔ ✖ ★ ▇'), result('✔ ✖ ★ ▇', '√ × * █'));
t.is(figures('✔ ✖\n★ ▇'), result('✔ ✖\n★ ▇', '√ ×\n █'));
t.is(figures('✔ ✖ ★ ▇'), result('✔ ✖ ★ ▇', '√ × █'));
});

test('exported sets', t => {
Expand Down

0 comments on commit 745987c

Please sign in to comment.