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

add some missing commands

This commit is contained in:
leibale
2021-07-13 19:35:07 -04:00
parent bf44b0bf43
commit 4dca486a9c
43 changed files with 721 additions and 5 deletions

View File

@@ -0,0 +1,26 @@
import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient, TestRedisClusters, itWithCluster } from '../test-utils';
import { transformArguments } from './GETBIT';
describe('GETBIT', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key', 0),
['GETBIT', 'key', '0']
);
});
itWithClient(TestRedisServers.OPEN, 'client.getBit', async client => {
assert.equal(
await client.getBit('key', 0),
0
);
});
itWithCluster(TestRedisClusters.OPEN, 'cluster.getBit', async cluster => {
assert.equal(
await cluster.getBit('key', 0),
0
);
});
});