1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Remove deprecated parser option

This commit is contained in:
Ruben Bridgewater
2016-12-17 18:08:51 +01:00
committed by Ruben Bridgewater
parent 98527e0fc5
commit 78187142cb
68 changed files with 151 additions and 185 deletions

View File

@@ -8,9 +8,9 @@ var intercept = require('intercept-stdout');
describe("The 'blpop' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
var bclient;

View File

@@ -7,10 +7,10 @@ var redis = config.redis;
describe("The 'client' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
var pattern = /addr=/;
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -8,9 +8,9 @@ var uuid = require('uuid');
describe("The 'dbsize' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var key, value;
beforeEach(function () {

View File

@@ -6,9 +6,9 @@ var redis = config.redis;
describe("The 'del' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -8,9 +8,9 @@ var redis = config.redis;
describe("The 'eval' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
var source = "return redis.call('set', 'sha', 'test')";

View File

@@ -6,9 +6,9 @@ var redis = config.redis;
describe("The 'exists' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -6,9 +6,9 @@ var redis = config.redis;
describe("The 'expire' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -8,9 +8,9 @@ var uuid = require('uuid');
describe("The 'flushdb' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var key, key2;
beforeEach(function () {

View File

@@ -6,9 +6,9 @@ var redis = config.redis;
describe("The 'geoadd' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -8,9 +8,9 @@ var uuid = require('uuid');
describe("The 'get' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var key, value;
beforeEach(function () {

View File

@@ -8,9 +8,9 @@ var uuid = require('uuid');
describe("The 'getset' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var key, value, value2;
beforeEach(function () {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'hgetall' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
describe('regular client', function () {
@@ -51,7 +51,7 @@ describe("The 'hgetall' method", function () {
describe('binary client', function () {
var client;
var args = config.configureClient(parser, ip, {
var args = config.configureClient(ip, {
return_buffers: true
});

View File

@@ -6,9 +6,9 @@ var redis = config.redis;
describe("The 'hincrby' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
var hash = 'test hash';

View File

@@ -6,9 +6,9 @@ var redis = config.redis;
describe("The 'hlen' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'hmget' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
var hash = 'test hash';

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'hmset' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
var hash = 'test hash';

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'hset' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
var hash = 'test hash';

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'incr' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
describe('when connected and a value in Redis', function () {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'info' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -8,9 +8,9 @@ var redis = config.redis;
describe("The 'keys' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'mget' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -8,9 +8,9 @@ var uuid = require('uuid');
describe("The 'mset' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var key, value, key2, value2;
beforeEach(function () {

View File

@@ -6,9 +6,9 @@ var redis = config.redis;
describe("The 'msetnx' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'randomkey' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -6,9 +6,9 @@ var redis = config.redis;
describe("The 'rename' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -6,9 +6,9 @@ var redis = config.redis;
describe("The 'renamenx' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var assert = require('assert');
describe("The 'rpush' command", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'sadd' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -6,9 +6,9 @@ var redis = config.redis;
describe("The 'scard' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -8,11 +8,11 @@ var redis = config.redis;
describe("The 'script' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
var command = 'return 99';
var commandSha = crypto.createHash('sha1').update(command).digest('hex');
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'sdiff' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'sdiffstore' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'select' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
describe('when not connected', function () {
var client;

View File

@@ -8,9 +8,9 @@ var uuid = require('uuid');
describe("The 'set' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var key, value;
beforeEach(function () {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'setex' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -6,9 +6,9 @@ var redis = config.redis;
describe("The 'setnx' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'sinter' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'sinterstore' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -6,9 +6,9 @@ var redis = config.redis;
describe("The 'sismember' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'slowlog' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'smembers' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -6,9 +6,9 @@ var redis = config.redis;
describe("The 'smove' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -34,9 +34,9 @@ function setupData (client, done) {
describe("The 'sort' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'spop' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'srem' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'sunion' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'sunionstore' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'ttl' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -6,9 +6,9 @@ var redis = config.redis;
describe("The 'type' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,11 +7,11 @@ var redis = config.redis;
describe("The 'watch' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
var watched = 'foobar';
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'zadd' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'zscan' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {

View File

@@ -7,9 +7,9 @@ var redis = config.redis;
describe("The 'zscore' method", function () {
helper.allTests(function (parser, ip, args) {
helper.allTests(function (ip, args) {
describe('using ' + parser + ' and ' + ip, function () {
describe('using ' + ip, function () {
var client;
beforeEach(function (done) {