Skip to content

Commit 9acbd6c

Browse files
author
Ruben Bridgewater
committed
Add simicolons and remove trailing whitespace
1 parent 06c5f19 commit 9acbd6c

17 files changed

+55
-61
lines changed

test/auth.spec.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe("client authentication", function () {
3636
client = redis.createClient.apply(redis.createClient, args);
3737

3838
client.once('error', function (error) {
39-
assert.ok(/ERR invalid password/.test(error))
39+
assert.ok(/ERR invalid password/.test(error));
4040
return done();
4141
});
4242

@@ -47,7 +47,8 @@ describe("client authentication", function () {
4747
it('allows auth to be provided as part of redis url', function (done) {
4848
client = redis.createClient('redis://foo:' + auth + '@' + config.HOST[ip] + ':' + config.PORT);
4949
client.on("ready", function () {
50-
return done() });
50+
return done();
51+
});
5152
});
5253
}
5354

test/commands/client.spec.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ describe("The 'client' method", function () {
1919
client.once("connect", function () {
2020
client.flushdb(function (err) {
2121
if (!helper.serverVersionAtLeast(client, [2, 4, 0])) {
22-
err = Error('script not supported in redis <= 2.4.0')
22+
err = Error('script not supported in redis <= 2.4.0');
2323
}
2424
return done(err);
25-
26-
})
25+
});
2726
});
2827
});
2928

@@ -39,15 +38,15 @@ describe("The 'client' method", function () {
3938
it("lists connected clients when invoked with multi's chaining syntax", function (done) {
4039
client.multi().client("list").exec(function(err, results) {
4140
assert(pattern.test(results[0]), "expected string '" + results + "' to match " + pattern.toString());
42-
return done()
43-
})
41+
return done();
42+
});
4443
});
4544

4645
it("lists connected clients when invoked with multi's array syntax", function (done) {
4746
client.multi().client("list").exec(function(err, results) {
4847
assert(pattern.test(results[0]), "expected string '" + results + "' to match " + pattern.toString());
49-
return done()
50-
})
48+
return done();
49+
});
5150
});
5251
});
5352
});

test/commands/eval.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ describe("The 'eval' method", function () {
1919
client.once("connect", function () {
2020
client.flushdb(function (err) {
2121
if (!helper.serverVersionAtLeast(client, [2, 5, 0])) {
22-
err = Error('exec not supported in redis <= 2.5.0')
22+
err = Error('exec not supported in redis <= 2.5.0');
2323
}
2424
return done(err);
25-
})
25+
});
2626
});
2727
});
2828

test/commands/hmset.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe("The 'hmset' method", function () {
2727
assert.equal(obj['0123456789'], 'abcdefghij');
2828
assert.equal(obj['some manner of key'], 'a type of value');
2929
return done(err);
30-
})
30+
});
3131
});
3232

3333
it('handles object-style syntax', function (done) {
@@ -36,7 +36,7 @@ describe("The 'hmset' method", function () {
3636
assert.equal(obj['0123456789'], 'abcdefghij');
3737
assert.equal(obj['some manner of key'], 'a type of value');
3838
return done(err);
39-
})
39+
});
4040
});
4141

4242
it('handles object-style syntax and the key being a number', function (done) {

test/commands/hset.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ describe("The 'hset' method", function () {
4747
});
4848

4949
it('does not error when a buffer and array are set as fields on the same hash', function (done) {
50-
var hash = "test hash"
51-
var field1 = "buffer"
52-
var value1 = new Buffer("abcdefghij")
53-
var field2 = "array"
54-
var value2 = ["array contents"]
50+
var hash = "test hash";
51+
var field1 = "buffer";
52+
var value1 = new Buffer("abcdefghij");
53+
var field2 = "array";
54+
var value2 = ["array contents"];
5555

5656
client.HMSET(hash, field1, value1, field2, value2, helper.isString("OK", done));
5757
});

test/commands/multi.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe("The 'multi' method", function () {
5050
client.once("connect", function () {
5151
client.flushdb(function (err) {
5252
return done(err);
53-
})
53+
});
5454
});
5555
});
5656

test/commands/renamenx.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe("The 'renamenx' method", function () {
3232
client.renamenx('foo', 'foo2', helper.isNumber(0));
3333
client.exists('foo', helper.isNumber(1));
3434
client.exists(['foo2'], helper.isNumber(1, done));
35-
})
35+
});
3636

3737
afterEach(function () {
3838
client.end();

test/commands/script.spec.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ describe("The 'script' method", function () {
2121
client.once("connect", function () {
2222
client.flushdb(function (err) {
2323
if (!helper.serverVersionAtLeast(client, [2, 6, 0])) {
24-
err = Error('script not supported in redis <= 2.6.0')
24+
err = Error('script not supported in redis <= 2.6.0');
2525
}
2626
return done(err);
27-
28-
})
27+
});
2928
});
3029
});
3130

@@ -42,21 +41,21 @@ describe("The 'script' method", function () {
4241

4342
it('allows a loaded script to be evaluated', function (done) {
4443
client.evalsha(commandSha, 0, helper.isString('99', done));
45-
})
44+
});
4645

4746
it('allows a script to be loaded as part of a chained transaction', function (done) {
4847
client.multi().script("load", command).exec(function(err, result) {
4948
assert.strictEqual(result[0], commandSha);
50-
return done()
51-
})
52-
})
49+
return done();
50+
});
51+
});
5352

5453
it("allows a script to be loaded using a transaction's array syntax", function (done) {
5554
client.multi([['script', 'load', command]]).exec(function(err, result) {
5655
assert.strictEqual(result[0], commandSha);
57-
return done()
58-
})
59-
})
56+
return done();
57+
});
58+
});
6059
});
6160
});
6261
});

test/commands/select.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe("The 'select' method", function () {
7070
it("emits an error", function (done) {
7171
assert.strictEqual(client.selected_db, null, "default db should be null");
7272
client.select(9999, function (err) {
73-
assert.equal(err.message, 'ERR invalid DB index')
73+
assert.equal(err.message, 'ERR invalid DB index');
7474
return done();
7575
});
7676
});

test/commands/sort.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe("The 'sort' method", function () {
1717
client.once("error", done);
1818
client.once("connect", function () {
1919
client.flushdb();
20-
setupData(client, done)
20+
setupData(client, done);
2121
});
2222
});
2323

0 commit comments

Comments
 (0)