electron/spec/api-desktop-capturer.js

18 lines
435 B
JavaScript
Raw Normal View History

2016-01-12 02:40:23 +00:00
var assert, desktopCapturer;
assert = require('assert');
desktopCapturer = require('electron').desktopCapturer;
describe('desktopCapturer', function() {
return it('should returns something', function(done) {
return desktopCapturer.getSources({
types: ['window', 'screen']
}, function(error, sources) {
assert.equal(error, null);
assert.notEqual(sources.length, 0);
return done();
});
});
});