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

Merge pull request #1255 from gorbiz/patch-1

📝 fix typo: To / Too
This commit is contained in:
Kyle J. Davis
2017-07-14 09:26:49 -07:00
committed by GitHub

View File

@@ -330,7 +330,7 @@ client.on('error', function (err) {
assert.strictEqual(err.errors.length, 2); // The set and get got aggregated in here assert.strictEqual(err.errors.length, 2); // The set and get got aggregated in here
assert.strictEqual(err.code, 'NR_CLOSED'); assert.strictEqual(err.code, 'NR_CLOSED');
}); });
client.set('foo', 123, 'bar', function (err, res) { // To many arguments client.set('foo', 123, 'bar', function (err, res) { // Too many arguments
assert(err instanceof redis.ReplyError); // => true assert(err instanceof redis.ReplyError); // => true
assert.strictEqual(err.command, 'SET'); assert.strictEqual(err.command, 'SET');
assert.deepStrictEqual(err.args, ['foo', 123, 'bar']); assert.deepStrictEqual(err.args, ['foo', 123, 'bar']);