1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
Files
node-redis/lib/commands/INCRBY.spec.ts
2021-06-11 16:37:04 -04:00

20 lines
517 B
TypeScript

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