Skip to content

Commit

Permalink
build: update for 4.2.x (#15)
Browse files Browse the repository at this point in the history
* build: update for 4.2.x

* Track down error
  • Loading branch information
John Kleinschmidt committed May 9, 2019
1 parent 6e589d5 commit 21a3ed0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "electron-mksnapshot",
"version": "4.1.0",
"version": "4.2.0",
"description": "Electron version of the mksnapshot binary",
"repository": "https://github.com/electron/mksnapshot",
"bin": {
Expand Down
8 changes: 7 additions & 1 deletion test/mksnapshot-test.js
Expand Up @@ -27,6 +27,9 @@ describe('mksnapshot binary', function () {
mksnapshot.stderr.on('data', function (data) { output += data })

mksnapshot.on('close', function (code) {
if (code !== 0) {
console.log('Error calling mksnapshot', output)
}
assert.equal(typeof code, 'number', 'Exit code is a number')
assert.equal(code, 0, 'Exit code is not zero')
assert.equal(output.indexOf('Loading script for embedding'), 0, output, 'Output is correct')
Expand All @@ -35,7 +38,10 @@ describe('mksnapshot binary', function () {
done()
})

mksnapshot.on('error', done)
mksnapshot.on('error', function (code) {
console.log('error Output is', output)
done()
})
})

it('fails for invalid JavaScript files', function (done) {
Expand Down

0 comments on commit 21a3ed0

Please sign in to comment.