Skip to content

Commit

Permalink
Add Electron 0.37.4-specific test for default_app.asar
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Apr 8, 2016
1 parent e51bda4 commit 6f730b8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/basic.js
Expand Up @@ -87,6 +87,32 @@ function createDefaultsTest (opts) {
}
}

function createDefaultAppAsarTest (opts) {
return function (t) {
t.timeoutAfter(config.timeout)

opts.name = 'el0374Test'
opts.dir = path.join(__dirname, 'fixtures', 'el-0374')
opts.version = '0.37.4'

var resourcesPath

waterfall([
function (cb) {
packager(opts, cb)
}, function (paths, cb) {
resourcesPath = path.join(paths[0], util.generateResourcesPath(opts))
fs.exists(path.join(resourcesPath, 'default_app.asar'), function (exists) {
t.false(exists, 'The output directory should not contain the Electron default_app.asar file')
cb()
})
}
], function (err) {
t.end(err)
})
}
}

function createOutTest (opts) {
return function (t) {
t.timeoutAfter(config.timeout)
Expand Down Expand Up @@ -448,6 +474,7 @@ function createIgnoreImplicitOutDirTest (opts) {

util.testAllPlatforms('infer test', createInferTest)
util.testAllPlatforms('defaults test', createDefaultsTest)
util.testAllPlatforms('default_app.asar removal test', createDefaultAppAsarTest)
util.testAllPlatforms('out test', createOutTest)
util.testAllPlatforms('asar test', createAsarTest)
util.testAllPlatforms('prune test', createPruneTest)
Expand Down

0 comments on commit 6f730b8

Please sign in to comment.