Permalink
Browse files

update tests for latest AVA version

  • Loading branch information...
1 parent cb84e69 commit 524820dd032f3b79abe7e08fb79c7ee3bb1cc536 @sindresorhus committed Dec 31, 2015
Showing with 4 additions and 5 deletions.
  1. +2 −2 package.json
  2. +2 −3 test.js
View
@@ -13,7 +13,7 @@
"node": ">=0.10.0"
},
"scripts": {
- "test": "node test.js"
+ "test": "ava"
},
"files": [
"index.js"
@@ -37,7 +37,7 @@
"os-homedir": "^1.0.0"
},
"devDependencies": {
- "ava": "0.0.4",
+ "ava": "*",
"path-exists": "^2.0.0"
}
}
View
@@ -4,7 +4,6 @@ var pathExists = require('path-exists');
var userHome = require('./');
test(function (t) {
- t.assert(userHome.length > 0);
- t.assert(pathExists.sync(userHome));
- t.end();
+ t.true(userHome.length > 0);
+ t.true(pathExists.sync(userHome));
});

0 comments on commit 524820d

Please sign in to comment.