Add failing spec
This commit is contained in:
parent
fb3ab9e1f1
commit
c719b252cb
1 changed files with 13 additions and 0 deletions
|
@ -11,4 +11,17 @@ describe('desktopCapturer', function() {
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('does not throw an error when called twice (regression)', function(done) {
|
||||||
|
var callCount = 0;
|
||||||
|
var callback = function(error, sources) {
|
||||||
|
callCount++;
|
||||||
|
assert.equal(error, null);
|
||||||
|
assert.notEqual(sources.length, 0);
|
||||||
|
if (callCount === 2) done();
|
||||||
|
}
|
||||||
|
|
||||||
|
desktopCapturer.getSources({types: ['window', 'screen']}, callback);
|
||||||
|
desktopCapturer.getSources({types: ['window', 'screen']}, callback);
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue