mirror of
https://github.com/electron/electron.git
synced 2026-01-09 23:48:01 -05:00
Add spec for invalid capture options
This commit is contained in:
@@ -18,6 +18,13 @@ describe('desktopCapturer', function () {
|
||||
})
|
||||
})
|
||||
|
||||
it('throws an error for invalid options', function (done) {
|
||||
desktopCapturer.getSources(['window', 'screen'], function (error) {
|
||||
assert.equal(error.message, 'Invalid options')
|
||||
done()
|
||||
})
|
||||
})
|
||||
|
||||
it('does not throw an error when called more than once (regression)', function (done) {
|
||||
var callCount = 0
|
||||
var callback = function (error, sources) {
|
||||
|
||||
Reference in New Issue
Block a user