diff --git a/npm/package.json b/npm/package.json index 90f59b2d41..14ec14179c 100644 --- a/npm/package.json +++ b/npm/package.json @@ -7,7 +7,8 @@ "url": "https://github.com/mafintosh/atom-shell" }, "scripts": { - "install": "node install.js" + "install": "node install.js", + "test": "tape test/*.js" }, "bin": { "atom-shell": "run.bat" @@ -17,7 +18,9 @@ "extract-zip": "^1.0.3", "nugget": "^1.1.2" }, - "devDependencies": {}, + "devDependencies": { + "tape": "^3.0.1" + }, "author": "Mathias Buus", "license": "MIT", "bugs": { diff --git a/npm/test/index.js b/npm/test/index.js new file mode 100644 index 0000000000..ba59de1911 --- /dev/null +++ b/npm/test/index.js @@ -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() +}) \ No newline at end of file