You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
27 lines
703 B
TypeScript
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
|
|
);
|
|
});
|
|
});
|