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

fix some Z (sorted list) commands, increase commands test coverage

This commit is contained in:
leibale
2021-11-11 18:50:32 -05:00
parent 41423fe8aa
commit ba66892b7c
10 changed files with 61 additions and 28 deletions

View File

@@ -30,7 +30,18 @@ describe('COMMAND INFO', () => {
);
});
testUtils.testWithClient('client.commandInfo', async client => {
assertPingCommand((await client.commandInfo(['PING']))[0]);
}, GLOBAL.SERVERS.OPEN);
describe('client.commandInfo', () => {
testUtils.testWithClient('PING', async client => {
assertPingCommand((await client.commandInfo(['PING']))[0]);
}, GLOBAL.SERVERS.OPEN);
testUtils.testWithClient('DOSE_NOT_EXISTS', async client => {
assert.deepEqual(
await client.commandInfo(['DOSE_NOT_EXISTS']),
[null]
);
}, GLOBAL.SERVERS.OPEN);
});
});