Skip to content

Commit

Permalink
fix weird node bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiask88 committed Jan 29, 2018
1 parent 5f2cb1b commit a9324ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration-test.js
Expand Up @@ -10,6 +10,8 @@ test('can prebuild a native module for electron', function (t) {
rm.sync(path.join(cwd, 'prebuilds'))
var file = 'native-v1.0.0-electron-v50-' + process.platform + '-' + process.arch + '.tar.gz'
var prebuild = path.join(cwd, 'prebuilds', file)
// A quick, temporary fix for a node.js bug (https://github.com/prebuild/prebuild/pull/208#issuecomment-361108755)
console.log()
exec('npm run prebuild', { cwd: cwd }, function (error, stdout, stderr) {
t.equal(error, null)
t.equal(fs.existsSync(prebuild), true)
Expand All @@ -21,6 +23,8 @@ test('can prebuild a native module for node-webkit', function (t) {
rm.sync(path.join(cwd, 'prebuilds'))
var file = 'native-v1.0.0-node-webkit-v59-' + process.platform + '-' + process.arch + '.tar.gz'
var prebuild = path.join(cwd, 'prebuilds', file)
// A quick, temporary fix for a node.js bug (https://github.com/prebuild/prebuild/pull/208#issuecomment-361108755)
console.log()
exec('npm run prebuild-node-webkit', { cwd: cwd }, function (error, stdout, stderr) {
t.equal(error, null)
t.equal(fs.existsSync(prebuild), true)
Expand Down

0 comments on commit a9324ee

Please sign in to comment.