1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
Files
node-redis/packages/client/lib/commands/MOVE.spec.ts
Leibale 442a554fce WIP
2023-05-10 16:07:29 +03:00

20 lines
445 B
TypeScript

import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import MOVE from './MOVE';
describe('MOVE', () => {
it('transformArguments', () => {
assert.deepEqual(
MOVE.transformArguments('key', 1),
['MOVE', 'key', '1']
);
});
testUtils.testWithClient('client.move', async client => {
assert.equal(
await client.move('key', 1),
0
);
}, GLOBAL.SERVERS.OPEN);
});