1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
Files
node-redis/packages/client/lib/commands/SETBIT.spec.ts
2023-04-30 10:08:25 -04:00

23 lines
509 B
TypeScript

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