index.js 413 B

12345678910111213141516
  1. var tape = require('tape')
  2. var electron = require('../')
  3. var path = require('path')
  4. var pathExists = require('path-exists')
  5. var getHomePath = require('home-path')()
  6. tape('has local binary', function (t) {
  7. t.ok(pathExists.sync(electron), 'electron was downloaded')
  8. t.end()
  9. })
  10. tape('has cache folder', function (t) {
  11. t.ok(pathExists.sync(path.join(getHomePath, './.electron')), 'cache exists')
  12. t.end()
  13. })