Use const and remove extra returns
This commit is contained in:
parent
01e1d0dfef
commit
fb3ab9e1f1
1 changed files with 5 additions and 8 deletions
|
@ -1,17 +1,14 @@
|
||||||
var assert, desktopCapturer;
|
const assert = require('assert');
|
||||||
|
const desktopCapturer = require('electron').desktopCapturer;
|
||||||
assert = require('assert');
|
|
||||||
|
|
||||||
desktopCapturer = require('electron').desktopCapturer;
|
|
||||||
|
|
||||||
describe('desktopCapturer', function() {
|
describe('desktopCapturer', function() {
|
||||||
return it('should return a non-empty array of sources', function(done) {
|
it('should return a non-empty array of sources', function(done) {
|
||||||
return desktopCapturer.getSources({
|
desktopCapturer.getSources({
|
||||||
types: ['window', 'screen']
|
types: ['window', 'screen']
|
||||||
}, function(error, sources) {
|
}, function(error, sources) {
|
||||||
assert.equal(error, null);
|
assert.equal(error, null);
|
||||||
assert.notEqual(sources.length, 0);
|
assert.notEqual(sources.length, 0);
|
||||||
return done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue