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/HEXISTS.spec.ts
2021-06-11 16:37:04 -04:00

20 lines
544 B
TypeScript

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