1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-11 22:42:42 +03:00
Files
node-redis/lib/commands/DECRBY.spec.ts
2021-05-12 19:16:17 -04:00

20 lines
520 B
TypeScript

import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient } from '../test-utils';
import { transformArguments } from './DECRBY';
describe('DECRBY', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key', 2),
['DECRBY', 'key', '2']
);
});
itWithClient(TestRedisServers.OPEN, 'client.decrBy', async client => {
assert.equal(
await client.decrBy('key', 2),
-2
);
});
});