You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
20 lines
586 B
TypeScript
20 lines
586 B
TypeScript
import { strict as assert } from 'assert';
|
|
import testUtils, { GLOBAL } from '../test-utils';
|
|
import { transformArguments } from './COMMAND_GETKEYS';
|
|
|
|
describe('COMMAND GETKEYS', () => {
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
transformArguments(['GET', 'key']),
|
|
['COMMAND', 'GETKEYS', 'GET', 'key']
|
|
);
|
|
});
|
|
|
|
testUtils.testWithClient('client.commandGetKeys', async client => {
|
|
assert.deepEqual(
|
|
await client.commandGetKeys(['GET', 'key']),
|
|
['key']
|
|
);
|
|
}, GLOBAL.SERVERS.OPEN);
|
|
});
|