Skip to content

Commit

Permalink
Add spec for quitAndInstall with no update on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Aug 8, 2016
1 parent dd6c69c commit 0747957
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/api-auto-updater-spec.js
Expand Up @@ -50,5 +50,19 @@ if (!process.mas) {
done()
})
})

describe('quitAndInstall', function () {
it('emits an error on Windows when no update is available', function (done) {
if (process.platform !== 'win32') {
return done()
}

ipcRenderer.once('auto-updater-error', function (event, message) {
assert.equal(message, 'No update available, can\'t quit and install')
done()
})
autoUpdater.quitAndInstall()
})
})
})
}

0 comments on commit 0747957

Please sign in to comment.