1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

fix HEXISTS spec

This commit is contained in:
dovi
2023-05-03 15:33:35 -04:00
parent afc33764e9
commit 9697cbbe25

View File

@@ -1,19 +1,22 @@
import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import { transformArguments } from './HEXISTS';
import HEXISTS from './HEXISTS';
describe('HEXISTS', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key', 'field'),
['HEXISTS', 'key', 'field']
);
});
it('transformArguments', () => {
assert.deepEqual(
HEXISTS.transformArguments('key', 'field'),
['HEXISTS', 'key', 'field']
);
});
testUtils.testWithClient('client.hExists', async client => {
assert.equal(
await client.hExists('key', 'field'),
false
);
}, GLOBAL.SERVERS.OPEN);
testUtils.testAll('hExists', async client => {
assert.equal(
await client.hExists('key', 'field'),
false
);
}, {
client: GLOBAL.SERVERS.OPEN,
cluster: GLOBAL.CLUSTERS.OPEN
});
});