Add failing spec

This commit is contained in:
Kevin Sawicki 2016-01-19 10:57:18 -08:00
parent fb3ab9e1f1
commit c719b252cb

View file

@ -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);
})
}); });