ESlint comma-dangle

This commit is contained in:
Peter Jaszkowiak
2017-02-17 19:31:21 -07:00
parent aa64ec7db1
commit bc1d70c126
345 changed files with 1974 additions and 1978 deletions

View File

@@ -9,7 +9,7 @@ describe('Hash methods', function () {
var testData = {
name: 'baris',
lastname: 'usakli',
age: 99
age: 99,
};
beforeEach(function (done) {
@@ -87,7 +87,7 @@ describe('Hash methods', function () {
before(function (done) {
async.parallel([
async.apply(db.setObject, 'testObject4', {name: 'baris'}),
async.apply(db.setObjectField, 'testObject5', 'name', 'ginger')
async.apply(db.setObjectField, 'testObject5', 'name', 'ginger'),
], done);
});
@@ -162,7 +162,7 @@ describe('Hash methods', function () {
before(function (done) {
async.parallel([
async.apply(db.setObject, 'testObject8', {name: 'baris', age:99}),
async.apply(db.setObject, 'testObject9', {name: 'ginger', age: 3})
async.apply(db.setObject, 'testObject9', {name: 'ginger', age: 3}),
], done);
});
@@ -299,7 +299,7 @@ describe('Hash methods', function () {
assert.equal(arguments.length, 1);
async.parallel({
delete1: async.apply(db.isObjectField, 'testObject10', 'delete1'),
delete2: async.apply(db.isObjectField, 'testObject10', 'delete2')
delete2: async.apply(db.isObjectField, 'testObject10', 'delete2'),
}, function (err, results) {
assert.ifError(err);
assert.equal(results.delete1, false);

View File

@@ -78,7 +78,7 @@ describe('Key methods', function () {
},
function (next) {
db.set('key2', 'value2', next);
}
},
], function (err) {
if (err) {
return done(err);
@@ -92,7 +92,7 @@ describe('Key methods', function () {
},
key2exists: function (next) {
db.exists('key2', next);
}
},
}, function (err, results) {
assert.equal(err, null);
assert.equal(results.key1exists, false);

View File

@@ -33,7 +33,7 @@ describe('List methods', function () {
},
function (next) {
db.listPrepend('testList2', 1, next);
}
},
], function (err) {
assert.equal(err, null);
done();
@@ -52,7 +52,7 @@ describe('List methods', function () {
},
function (next) {
db.listAppend('testList4', 5, next);
}
},
], done);
});
@@ -94,7 +94,7 @@ describe('List methods', function () {
},
function (next) {
db.listPrepend('testList4', 9, next);
}
},
], done);
});
@@ -115,7 +115,7 @@ describe('List methods', function () {
async.apply(db.listAppend, 'testList5', 1),
async.apply(db.listAppend, 'testList5', 1),
async.apply(db.listAppend, 'testList5', 2),
async.apply(db.listAppend, 'testList5', 5)
async.apply(db.listAppend, 'testList5', 5),
], done);
});

View File

@@ -157,7 +157,7 @@ describe('Set methods', function () {
async.parallel([
async.apply(db.setAdd, 'set5', [1,2,3,4,5]),
async.apply(db.setAdd, 'set6', 1),
async.apply(db.setAdd, 'set7', 2)
async.apply(db.setAdd, 'set7', 2),
], done);
});

View File

@@ -20,7 +20,7 @@ describe('Sorted Set methods', function () {
},
function (next) {
db.sortedSetAdd('sortedSetLex', [0, 0, 0, 0], ['a', 'b', 'c', 'd'], next);
}
},
], done);
});
@@ -565,7 +565,7 @@ describe('Sorted Set methods', function () {
},
function (next) {
db.sortedSetAdd('interSet2', [4,5,6], ['value2', 'value3', 'value5'], next);
}
},
], done);
});
@@ -573,7 +573,7 @@ describe('Sorted Set methods', function () {
db.getSortedSetIntersect({
sets: ['interSet1', 'interSet2'],
start: 0,
stop: -1
stop: -1,
}, function (err, data) {
assert.ifError(err);
assert.deepEqual(['value2', 'value3'], data);
@@ -586,7 +586,7 @@ describe('Sorted Set methods', function () {
sets: ['interSet1', 'interSet2'],
start: 0,
stop: -1,
withScores: true
withScores: true,
}, function (err, data) {
assert.ifError(err);
assert.deepEqual([{value: 'value2', score: 6}, {value: 'value3', score: 8}], data);
@@ -600,7 +600,7 @@ describe('Sorted Set methods', function () {
start: 0,
stop: -1,
withScores: true,
aggregate: 'MIN'
aggregate: 'MIN',
}, function (err, data) {
assert.ifError(err);
assert.deepEqual([{value: 'value2', score: 2}, {value: 'value3', score: 3}], data);
@@ -614,7 +614,7 @@ describe('Sorted Set methods', function () {
start: 0,
stop: -1,
withScores: true,
aggregate: 'MAX'
aggregate: 'MAX',
}, function (err, data) {
assert.ifError(err);
assert.deepEqual([{value: 'value2', score: 4}, {value: 'value3', score: 5}], data);
@@ -628,7 +628,7 @@ describe('Sorted Set methods', function () {
start: 0,
stop: -1,
withScores: true,
weights: [1, 0.5]
weights: [1, 0.5],
}, function (err, data) {
assert.ifError(err);
assert.deepEqual([{value: 'value2', score: 4}, {value: 'value3', score: 5.5}], data);
@@ -640,7 +640,7 @@ describe('Sorted Set methods', function () {
db.getSortedSetIntersect({
sets: ['interSet10', 'interSet12'],
start: 0,
stop: -1
stop: -1,
}, function (err, data) {
assert.ifError(err);
assert.equal(data.length, 0);
@@ -652,7 +652,7 @@ describe('Sorted Set methods', function () {
db.getSortedSetIntersect({
sets: ['interSet1', 'interSet12'],
start: 0,
stop: -1
stop: -1,
}, function (err, data) {
assert.ifError(err);
assert.equal(data.length, 0);
@@ -676,7 +676,7 @@ describe('Sorted Set methods', function () {
},
function (next) {
db.sortedSetAdd('interCard4', [0, 0, 0], ['value4', 'value5', 'value6'], next);
}
},
], done);
});