packages/client/lib/commands/COMMAND_GETKEYS.spec.ts
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import COMMAND_GETKEYS from './COMMAND_GETKEYS';
import { parseArgs } from './generic-transformers';
describe('COMMAND GETKEYS', () => {
it('transformArguments', () => {
assert.deepEqual(
parseArgs(COMMAND_GETKEYS, ['GET', 'key']),
['COMMAND', 'GETKEYS', 'GET', 'key']
);
});
testUtils.testWithClient('client.commandGetKeys', async client => {
assert.deepEqual(
await client.commandGetKeys(['GET', 'key']),
['key']
);
}, GLOBAL.SERVERS.OPEN);
});