added cache

This commit is contained in:
RnbWd 2015-05-06 21:44:10 -07:00
parent 8fdb5b42d8
commit 7864197291
4 changed files with 39 additions and 8 deletions

View file

@ -1,8 +1,15 @@
var tape = require('tape')
var electron = require('../')
var path = require('path');
var pathExists = require('path-exists')
var getHomePath = require('home-path')()
tape('has binary', function(t) {
tape('has local binary', function(t) {
t.ok(pathExists.sync(electron), 'electron was downloaded')
t.end()
})
tape('has cache folder', function(t) {
t.ok(pathExists.sync(path.join(getHomePath, './.electron')), 'cache exists')
t.end()
})