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

fix GET spec

This commit is contained in:
dovi
2023-05-03 14:54:18 -04:00
parent 642c823d1b
commit 9dd536edd9

View File

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