Skip to content

Commit

Permalink
get tests passing on Travis CI with latest xo, etc (#97)
Browse files Browse the repository at this point in the history
* `npm test` skips `xo` for Node.js < 4

* eslint-disable unicorn/no-process-exit (new name)
  • Loading branch information
jokeyrhyme authored and SBoudrias committed Oct 20, 2016
1 parent b72bf7f commit 384e846
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion check.js
@@ -1,4 +1,4 @@
/* eslint-disable xo/no-process-exit */
/* eslint-disable unicorn/no-process-exit */
'use strict';
var updateNotifier = require('./');

Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -13,7 +13,7 @@
"node": ">=0.10.0"
},
"scripts": {
"test": "xo && mocha --timeout 20000"
"test": "if-node-version \">=4\" xo && mocha --timeout 20000"
},
"files": [
"index.js",
Expand Down Expand Up @@ -45,6 +45,7 @@
"devDependencies": {
"clear-require": "^1.0.1",
"fixture-stdout": "^0.2.1",
"if-node-version": "^1.1.0",
"mocha": "*",
"strip-ansi": "^3.0.1",
"xo": "*"
Expand Down

0 comments on commit 384e846

Please sign in to comment.