diff --git a/package.json b/package.json index ffd3551b41..529af1ad28 100644 --- a/package.json +++ b/package.json @@ -109,6 +109,7 @@ "bisheng-plugin-description": "^0.1.4", "bisheng-plugin-react": "^1.0.0", "bisheng-plugin-toc": "^0.4.4", + "chalk": "^2.4.1", "commander": "^2.18.0", "core-js": "^2.5.7", "cross-env": "^5.2.0", diff --git a/tests/dekko/dist.test.js b/tests/dekko/dist.test.js index cffcc298ec..326a3820ad 100644 --- a/tests/dekko/dist.test.js +++ b/tests/dekko/dist.test.js @@ -1,4 +1,5 @@ const $ = require('dekko'); +const chalk = require('chalk'); $('dist') .isDirectory() @@ -8,4 +9,4 @@ $('dist') .hasFile('antd.min.js'); // eslint-disable-next-line -console.log('`dist` directory is valid.'); +console.log(chalk.green('✨ `dist` directory is valid.')); diff --git a/tests/dekko/lib.test.js b/tests/dekko/lib.test.js index 1270d1dbdc..7821a89d52 100644 --- a/tests/dekko/lib.test.js +++ b/tests/dekko/lib.test.js @@ -1,4 +1,5 @@ const $ = require('dekko'); +const chalk = require('chalk'); $('lib') .isDirectory() @@ -20,4 +21,4 @@ $('lib/*/style') $('lib/style').hasFile('v2-compatible-reset.css'); // eslint-disable-next-line -console.log('`lib` directory is valid.'); +console.log(chalk.green('✨ `lib` directory is valid.'));