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

fix HKEYS spec

This commit is contained in:
dovi
2023-05-03 16:54:51 -04:00
parent d9cac4665b
commit 87a6afc4ff

View File

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