You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-12-15 23:55:38 +03:00
committed by
GitHub
parent
d7c6544d3a
commit
1cda848393
@@ -27,10 +27,38 @@ describe('PUBSUB NUMSUB', () => {
|
||||
});
|
||||
});
|
||||
|
||||
testUtils.testWithClient('client.pubSubNumSub', async client => {
|
||||
testUtils.testWithClient('client.pubSubNumSub resp2', async client => {
|
||||
assert.deepEqual(
|
||||
await client.pubSubNumSub(),
|
||||
Object.create(null)
|
||||
);
|
||||
}, GLOBAL.SERVERS.OPEN);
|
||||
|
||||
const res = await client.PUBSUB_NUMSUB(["test", "test2"]);
|
||||
assert.equal(res.test, 0);
|
||||
assert.equal(res.test2, 0);
|
||||
|
||||
}, {
|
||||
...GLOBAL.SERVERS.OPEN,
|
||||
clientOptions: {
|
||||
RESP: 2
|
||||
}
|
||||
});
|
||||
|
||||
testUtils.testWithClient('client.pubSubNumSub resp3', async client => {
|
||||
assert.deepEqual(
|
||||
await client.pubSubNumSub(),
|
||||
Object.create(null)
|
||||
);
|
||||
|
||||
const res = await client.PUBSUB_NUMSUB(["test", "test2"]);
|
||||
assert.equal(res.test, 0);
|
||||
assert.equal(res.test2, 0);
|
||||
|
||||
}, {
|
||||
...GLOBAL.SERVERS.OPEN,
|
||||
clientOptions: {
|
||||
RESP: 3
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user