1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Add simicolons and remove trailing whitespace

This commit is contained in:
Ruben Bridgewater
2015-09-01 21:39:44 +02:00
parent 06c5f1922b
commit 9acbd6c860
17 changed files with 55 additions and 61 deletions

View File

@@ -46,7 +46,7 @@ describe("publish/subscribe", function () {
it('fires a subscribe event for each channel subscribed to', function (done) {
sub.on("subscribe", function (chnl, count) {
if (chnl === channel2) {
assert.equal(2, count)
assert.equal(2, count);
return done();
}
});
@@ -169,7 +169,7 @@ describe("publish/subscribe", function () {
describe('unsubscribe', function () {
it('fires an unsubscribe event', function (done) {
sub.on("subscribe", function (chnl, count) {
sub.unsubscribe(channel)
sub.unsubscribe(channel);
});
sub.subscribe(channel);
@@ -183,7 +183,7 @@ describe("publish/subscribe", function () {
it('puts client back into write mode', function (done) {
sub.on("subscribe", function (chnl, count) {
sub.unsubscribe(channel)
sub.unsubscribe(channel);
});
sub.subscribe(channel);
@@ -191,10 +191,10 @@ describe("publish/subscribe", function () {
sub.on("unsubscribe", function (chnl, count) {
pub.incr("foo", helper.isNumber(1, done));
});
})
});
it('does not complain when unsubscribe is called and there are no subscriptions', function () {
sub.unsubscribe()
sub.unsubscribe();
});
it('executes callback when unsubscribe is called and there are no subscriptions', function (done) {
@@ -217,15 +217,15 @@ describe("publish/subscribe", function () {
assert.strictEqual(channel, '/foo');
assert.strictEqual(message, 'hello world');
return done();
})
});
pub.publish('/foo', 'hello world');
});
});
describe('punsubscribe', function () {
it('does not complain when punsubscribe is called and there are no subscriptions', function () {
sub.punsubscribe()
})
sub.punsubscribe();
});
it('executes callback when punsubscribe is called and there are no subscriptions', function (done) {
// test hangs on older versions of redis, so skip