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

fix HGET spec

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

View File

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