mirror of
https://github.com/appium/appium.git
synced 2026-02-09 11:18:51 -06:00
fixing jscs styling error
This commit is contained in:
@@ -10,31 +10,31 @@ var action = args[0];
|
||||
|
||||
function split() {
|
||||
var globPatterns = args[1].split(',');
|
||||
var blackList = _((args[2] || "").split(',')).map(function(filename) {
|
||||
var blackList = _((args[2] || "").split(',')).map(function (filename) {
|
||||
return filename.trim();
|
||||
});
|
||||
|
||||
var groups = {};
|
||||
_(5).times(function(i) { groups['group ' + (i + 1)] = []; });
|
||||
_(5).times(function (i) { groups['group ' + (i + 1)] = []; });
|
||||
var files = [];
|
||||
async.eachSeries(
|
||||
globPatterns,
|
||||
function(globPattern, done) {
|
||||
function (globPattern, done) {
|
||||
glob(globPattern, function (err, _files) {
|
||||
if (err) return done(err);
|
||||
files = _.union(files, _files);
|
||||
done();
|
||||
});
|
||||
},
|
||||
function(err) {
|
||||
function (err) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
process.exit(1);
|
||||
}
|
||||
files = _(files).reject(function(filename) {
|
||||
files = _(files).reject(function (filename) {
|
||||
return blackList.indexOf(filename) >= 0;
|
||||
});
|
||||
_(files).each(function(filename, i) {
|
||||
_(files).each(function (filename, i) {
|
||||
groups['group ' + ((i % 5) + 1)].push(filename);
|
||||
});
|
||||
console.log(JSON.stringify(groups, null, 2));
|
||||
|
||||
@@ -18,7 +18,7 @@ target = target.replace(/^ # <SECURE>.*$/m, secureLines);
|
||||
_([
|
||||
'SAUCE_REST_ROOT', 'APPIUM_HOST',
|
||||
'APPIUM_PORT', 'SAUCE_USERNAME',
|
||||
]).each(function(varName) {
|
||||
]).each(function (varName) {
|
||||
var regex = new RegExp('- ' + varName + '=.*');
|
||||
var line = source.match(regex)[0];
|
||||
regex = new RegExp('- ' + varName + '=.*','g');
|
||||
@@ -26,5 +26,3 @@ _([
|
||||
});
|
||||
console.log(target);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ module.exports.initSession = function (desired, opts) {
|
||||
});
|
||||
}
|
||||
if (env.DEBUG_CONNECTION) {
|
||||
browser.on('connection', function(message) {
|
||||
browser.on('connection', function (message) {
|
||||
console.log('connection > ' + message );
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user