autoformat more files

This commit is contained in:
Zeke Sikelianos 2016-03-25 13:03:49 -07:00 committed by Kevin Sawicki
parent 06b556c34c
commit f35f362272
47 changed files with 4458 additions and 4459 deletions

View file

@ -1,27 +1,27 @@
const assert = require('assert');
const desktopCapturer = require('electron').desktopCapturer;
const assert = require('assert')
const desktopCapturer = require('electron').desktopCapturer
describe('desktopCapturer', function() {
it('should return a non-empty array of sources', function(done) {
describe('desktopCapturer', function () {
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);
done();
});
});
}, function (error, sources) {
assert.equal(error, null)
assert.notEqual(sources.length, 0)
done()
})
})
it('does not throw an error when called more than once (regression)', function(done) {
var callCount = 0;
it('does not throw an error when called more than once (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();
};
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);
});
});
desktopCapturer.getSources({types: ['window', 'screen']}, callback)
desktopCapturer.getSources({types: ['window', 'screen']}, callback)
})
})