projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd6c69c
)
Add spec for quitAndInstall with no update on Windows
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Mon, 8 Aug 2016 20:12:39 +0000
(13:12 -0700)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Mon, 8 Aug 2016 20:13:08 +0000
(13:13 -0700)
spec/api-auto-updater-spec.js
patch
|
blob
|
history
diff --git
a/spec/api-auto-updater-spec.js
b/spec/api-auto-updater-spec.js
index
f93590c
..
0716c22
100644
(file)
--- a/
spec/api-auto-updater-spec.js
+++ b/
spec/api-auto-updater-spec.js
@@
-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()
+ })
+ })
})
}