Skip to content

Commit 3631564

Browse files
refactored a test fixture, since Chalk removed the chalk.stripColor() method
1 parent 425c5d3 commit 3631564

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
"eslint": "^4.11.0",
4949
"eslint-config-modular": "^4.1.0",
5050
"mocha": "^4.0.1",
51-
"npm-check": "^5.5.2"
51+
"npm-check": "^5.5.2",
52+
"strip-ansi": "^4.0.0"
5253
},
5354
"dependencies": {
5455
"chalk": "^2.3.0",

test/fixtures/check.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict';
22

3-
const chalk = require('chalk');
3+
const stripAnsi = require('strip-ansi');
44
const logSymbols = require('log-symbols');
55

66
// Export the check symbol (✔ on Mac/Linux, √ on Windows)
77
// with the ANSI color sequences removed
8-
module.exports = chalk.stripColor(logSymbols.success);
8+
module.exports = stripAnsi(logSymbols.success);

0 commit comments

Comments
 (0)