mirror of
https://github.com/electron/electron.git
synced 2026-01-27 16:28:23 -05:00
Use const and remove extra returns
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
var assert, desktopCapturer;
|
||||
|
||||
assert = require('assert');
|
||||
|
||||
desktopCapturer = require('electron').desktopCapturer;
|
||||
const assert = require('assert');
|
||||
const desktopCapturer = require('electron').desktopCapturer;
|
||||
|
||||
describe('desktopCapturer', function() {
|
||||
return it('should return a non-empty array of sources', function(done) {
|
||||
return desktopCapturer.getSources({
|
||||
it('should return a non-empty array of sources', function(done) {
|
||||
desktopCapturer.getSources({
|
||||
types: ['window', 'screen']
|
||||
}, function(error, sources) {
|
||||
assert.equal(error, null);
|
||||
assert.notEqual(sources.length, 0);
|
||||
return done();
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user