Skip to content

Commit e2e3894

Browse files
Expose the "check" symbol and the "info" symbol
1 parent b7c9bd2 commit e2e3894

3 files changed

Lines changed: 20 additions & 9 deletions

File tree

test/utils/check.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

test/utils/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
module.exports = {
44
bump: require("./bump"),
5-
check: require("./check"),
5+
check: require("./symbols").check,
6+
info: require("./symbols").info,
67
files: require("./files"),
78
fixtures: require("./fixtures"),
89
mocks: require("./mocks"),

test/utils/symbols.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"use strict";
2+
3+
const stripAnsi = require("strip-ansi");
4+
const logSymbols = require("log-symbols");
5+
6+
module.exports = {
7+
/**
8+
* The check symbol (✔ on Mac/Linux, √ on Windows)
9+
* with the ANSI color sequences removed
10+
*/
11+
check: stripAnsi(logSymbols.success),
12+
13+
/**
14+
* The check symbol (ℹ on Mac/Linux, i on Windows)
15+
* with the ANSI color sequences removed
16+
*/
17+
info: stripAnsi(logSymbols.info),
18+
};

0 commit comments

Comments
 (0)