electron/npm/test/index.js

16 lines
412 B
JavaScript
Raw Normal View History

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