1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
Files
node-redis/lib/commands/GET.spec.ts
2021-06-22 14:10:52 -04:00

27 lines
703 B
TypeScript

import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient, TestRedisClusters, itWithCluster } from '../test-utils';
import { transformArguments } from './GET';
describe('GET', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key'),
['GET', 'key']
);
});
itWithClient(TestRedisServers.OPEN, 'client.get', async client => {
assert.equal(
await client.get('key'),
null
);
});
itWithCluster(TestRedisClusters.OPEN, 'cluster.get', async cluster => {
assert.equal(
await cluster.get('key'),
null
);
});
});