1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
Files
node-redis/packages/client/lib/commands/MOVE.spec.ts
2023-05-01 06:58:27 -04: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),
1
);
}, GLOBAL.SERVERS.OPEN);
});