You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Replace jshint with eslint and add lots of rules
Fix eslint errors accordingly
This commit is contained in:
@@ -7,14 +7,14 @@ var redis = config.redis;
|
||||
|
||||
describe("The 'zscan' method", function () {
|
||||
|
||||
helper.allTests(function(parser, ip, args) {
|
||||
helper.allTests(function (parser, ip, args) {
|
||||
|
||||
describe("using " + parser + " and " + ip, function () {
|
||||
describe('using ' + parser + ' and ' + ip, function () {
|
||||
var client;
|
||||
|
||||
beforeEach(function (done) {
|
||||
client = redis.createClient.apply(null, args);
|
||||
client.once("ready", function () {
|
||||
client.once('ready', function () {
|
||||
client.flushdb(done);
|
||||
});
|
||||
});
|
||||
@@ -24,14 +24,14 @@ describe("The 'zscan' method", function () {
|
||||
helper.serverVersionAtLeast.call(this, client, [2, 8, 0]);
|
||||
var hash = {};
|
||||
var set = [];
|
||||
var zset = ["zset:1"];
|
||||
var zset = ['zset:1'];
|
||||
for (var i = 0; i < 500; i++) {
|
||||
hash["key_" + i] = "value_" + i;
|
||||
set.push("member_" + i);
|
||||
zset.push(i, "z_member_" + i);
|
||||
hash['key_' + i] = 'value_' + i;
|
||||
set.push('member_' + i);
|
||||
zset.push(i, 'z_member_' + i);
|
||||
}
|
||||
client.hmset("hash:1", hash);
|
||||
client.sadd("set:1", set);
|
||||
client.hmset('hash:1', hash);
|
||||
client.sadd('set:1', set);
|
||||
client.zadd(zset);
|
||||
client.zscan('zset:1', 0, 'MATCH', '*', 'COUNT', 500, function (err, res) {
|
||||
assert(!err);
|
||||
|
Reference in New Issue
Block a user