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

Add a lot more tests to indicate that the everything is consistent

Add a test for #390

More special cases
This commit is contained in:
Ruben Bridgewater
2015-09-15 00:57:31 +02:00
parent c522ca1264
commit a0c92b0756
11 changed files with 126 additions and 13 deletions

View File

@@ -23,7 +23,7 @@ describe("The 'keys' method", function () {
it('returns matching keys', function (done) {
client.mset(["test keys 1", "test val 1", "test keys 2", "test val 2"], helper.isString("OK"));
client.KEYS(["test keys*"], function (err, results) {
client.KEYS("test keys*", function (err, results) {
assert.strictEqual(2, results.length);
assert.ok(~results.indexOf("test keys 1"));
assert.ok(~results.indexOf("test keys 2"));