electron/spec/api-desktop-capturer.js
2016-01-12 16:24:06 -08:00

17 lines
435 B
JavaScript

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