Add spec for quitAndInstall with no update on Windows
This commit is contained in:
parent
dd6c69c90b
commit
0747957919
1 changed files with 14 additions and 0 deletions
|
@ -50,5 +50,19 @@ if (!process.mas) {
|
||||||
done()
|
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()
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue