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/HSTRLEN.spec.ts
2021-05-25 13:02:15 -04:00

20 lines
540 B
TypeScript

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