Browse Source

fix tests

master
Sindre Sorhus 9 years ago
parent
commit
472ece83f8
  1. 4
      package.json
  2. 7
      test-real.js

4
package.json

@ -13,7 +13,7 @@
"node": ">=0.12.0"
},
"scripts": {
"test": "xo && ava test.js && echo unicorns | ava test-real.js"
"test": "xo && ava test.js && echo unicorns | node test-real.js"
},
"files": [
"index.js"
@ -29,7 +29,7 @@
"read"
],
"devDependencies": {
"ava": "*",
"ava": "^0.2.0",
"buffer-equals": "^1.0.3",
"xo": "*"
},

7
test-real.js

@ -1,3 +1,6 @@
import fn from './';
'use strict';
var fn = require('./');
fn().then(data => process.exit(data ? 0 : 1));
fn().then(function (data) {
process.exit(data ? 0 : 1);
});

Loading…
Cancel
Save