add tests

This commit is contained in:
Mathias Buus 2014-10-20 14:56:57 +09:00
parent 74c7a9455b
commit 1bbd199e34
2 changed files with 13 additions and 2 deletions

View file

@ -7,7 +7,8 @@
"url": "https://github.com/mafintosh/atom-shell" "url": "https://github.com/mafintosh/atom-shell"
}, },
"scripts": { "scripts": {
"install": "node install.js" "install": "node install.js",
"test": "tape test/*.js"
}, },
"bin": { "bin": {
"atom-shell": "run.bat" "atom-shell": "run.bat"
@ -17,7 +18,9 @@
"extract-zip": "^1.0.3", "extract-zip": "^1.0.3",
"nugget": "^1.1.2" "nugget": "^1.1.2"
}, },
"devDependencies": {}, "devDependencies": {
"tape": "^3.0.1"
},
"author": "Mathias Buus", "author": "Mathias Buus",
"license": "MIT", "license": "MIT",
"bugs": { "bugs": {

8
npm/test/index.js Normal file
View file

@ -0,0 +1,8 @@
var tape = require('tape')
var atom = require('../')
var fs = require('fs')
tape('has binary', function(t) {
t.ok(fs.existsSync(atom), 'atom-shell was downloaded')
t.end()
})