From 1bbd199e34ad118e637a155ddbb10b2f745f0877 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Mon, 20 Oct 2014 14:56:57 +0900 Subject: [PATCH] add tests --- npm/package.json | 7 +++++-- npm/test/index.js | 8 ++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 npm/test/index.js diff --git a/npm/package.json b/npm/package.json index 90f59b2d4133..14ec14179ce1 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 000000000000..ba59de191156 --- /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