You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Add simicolons and remove trailing whitespace
This commit is contained in:
@@ -21,11 +21,10 @@ describe("The 'script' method", function () {
|
||||
client.once("connect", function () {
|
||||
client.flushdb(function (err) {
|
||||
if (!helper.serverVersionAtLeast(client, [2, 6, 0])) {
|
||||
err = Error('script not supported in redis <= 2.6.0')
|
||||
err = Error('script not supported in redis <= 2.6.0');
|
||||
}
|
||||
return done(err);
|
||||
|
||||
})
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -42,21 +41,21 @@ describe("The 'script' method", function () {
|
||||
|
||||
it('allows a loaded script to be evaluated', function (done) {
|
||||
client.evalsha(commandSha, 0, helper.isString('99', done));
|
||||
})
|
||||
});
|
||||
|
||||
it('allows a script to be loaded as part of a chained transaction', function (done) {
|
||||
client.multi().script("load", command).exec(function(err, result) {
|
||||
assert.strictEqual(result[0], commandSha);
|
||||
return done()
|
||||
})
|
||||
})
|
||||
return done();
|
||||
});
|
||||
});
|
||||
|
||||
it("allows a script to be loaded using a transaction's array syntax", function (done) {
|
||||
client.multi([['script', 'load', command]]).exec(function(err, result) {
|
||||
assert.strictEqual(result[0], commandSha);
|
||||
return done()
|
||||
})
|
||||
})
|
||||
return done();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user