1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00
Files
node-redis/packages/client/lib/commands/RENAME.spec.ts

22 lines
573 B
TypeScript

import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import { transformArguments } from './RENAME';
describe('RENAME', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('from', 'to'),
['RENAME', 'from', 'to']
);
});
testUtils.testWithClient('client.rename', async client => {
await client.set('from', 'value');
assert.equal(
await client.rename('from', 'to'),
'OK'
);
}, GLOBAL.SERVERS.OPEN);
});