electron/npm/test/index.js

16 lines
412 B
JavaScript
Raw Normal View History

2014-10-20 05:56:57 +00:00
var tape = require('tape')
2015-04-17 18:19:50 +00:00
var electron = require('../')
2015-05-07 04:44:10 +00:00
var path = require('path');
var pathExists = require('path-exists')
2015-05-07 04:44:10 +00:00
var getHomePath = require('home-path')()
2014-10-20 05:56:57 +00:00
2015-05-07 04:44:10 +00:00
tape('has local binary', function(t) {
t.ok(pathExists.sync(electron), 'electron was downloaded')
2014-10-20 05:56:57 +00:00
t.end()
})
2015-05-07 04:44:10 +00:00
tape('has cache folder', function(t) {
t.ok(pathExists.sync(path.join(getHomePath, './.electron')), 'cache exists')
t.end()
})