Add autoUpdater getFeedURL specs
This commit is contained in:
parent
d42e6b3c1f
commit
450c181da3
1 changed files with 17 additions and 0 deletions
|
@ -33,5 +33,22 @@ if (!process.mas) {
|
||||||
autoUpdater.setFeedURL('')
|
autoUpdater.setFeedURL('')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe('getFeedURL', function () {
|
||||||
|
it('returns a falsey value by default', function () {
|
||||||
|
assert.ok(!autoUpdater.getFeedURL())
|
||||||
|
})
|
||||||
|
|
||||||
|
it('correctly fetches the previously set FeedURL', function (done) {
|
||||||
|
if (process.platform !== 'win32') {
|
||||||
|
return done()
|
||||||
|
}
|
||||||
|
|
||||||
|
const updateURL = 'https://fake-update.electron.io'
|
||||||
|
autoUpdater.setFeedURL(updateURL)
|
||||||
|
assert.equal(autoUpdater.getFeedURL(), updateURL)
|
||||||
|
done()
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue