1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00
Files
node-redis/packages/client/lib/commands/GETBIT.spec.ts

27 lines
705 B
TypeScript

import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import { transformArguments } from './GETBIT';
describe('GETBIT', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key', 0),
['GETBIT', 'key', '0']
);
});
testUtils.testWithClient('client.getBit', async client => {
assert.equal(
await client.getBit('key', 0),
0
);
}, GLOBAL.SERVERS.OPEN);
testUtils.testWithCluster('cluster.getBit', async cluster => {
assert.equal(
await cluster.getBit('key', 0),
0
);
}, GLOBAL.CLUSTERS.OPEN);
});