]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: force color mode of mocha, remove code test output in husky scripts
authorDaniel Ruf <daniel@daniel-ruf.de>
Sun, 1 Apr 2018 23:44:03 +0000 (01:44 +0200)
committerDaniel Ruf <daniel@daniel-ruf.de>
Sun, 1 Apr 2018 23:44:03 +0000 (01:44 +0200)
package.json
script/husky-precommit.js
script/husky-prepush.js

index 83e2cc1e881f8e2c68cf22c74ffb9f1a4a05f24f..0f164d5dd762169e7813d36648ecd1017240006d 100644 (file)
@@ -13,7 +13,7 @@
     "start": "gulp",
     "test": "npm run test:sass && npm run test:javascript:units",
     "test:ci": "npm run test:sass && npm run test:javascript:ci",
-    "test:sass": "mocha test/sass/test_sass.js",
+    "test:sass": "mocha test/sass/test_sass.js --colors",
     "test:javascript:transpile": "gulp sass:foundation && gulp test:transpile-js",
     "test:javascript:units": "npm run test:javascript:transpile && mocha-headless-chrome -a ignore-resource-errors -f test/javascript/index.html",
     "test:javascript:browserstack": "npm run test:javascript:transpile && browserstack-runner",
index cdb83d078e82f3694b5b39eed564b5086bbca97d..facf886616311da0c4205170658f2debd7acce3c 100644 (file)
@@ -11,7 +11,7 @@ child.stdout.on('data', function (data) {
 
 child.on('exit', function (code) {
   if(code === 0){
-    console.log(chalk.yellow(code, '🐶  ✓ Tests run well, we can commit...'))
+    console.log(chalk.yellow('🐶  ✓ Tests run well, we can commit...'))
   } else {
     console.log(chalk.yellow('🐶  ✗ Tests are failing, please fix them before committing.'))
   }
index 571031fa4eadf387c257aba16da233580f385522..22ad2a6101088eb2998da41a8f03f9e19e09563d 100644 (file)
@@ -11,7 +11,7 @@ child.stdout.on('data', function (data) {
 
 child.on('exit', function (code) {
   if(code === 0){
-    console.log(chalk.yellow(code, '🐶  ✓ Tests run well, we can push...'))
+    console.log(chalk.yellow('🐶  ✓ Tests run well, we can push...'))
   } else {
     console.log(chalk.yellow('🐶  ✗ Tests are failing, please fix them before pushing.'))
   }