packages/client/lib/commands/SMOVE.spec.ts
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import SMOVE from './SMOVE';
import { parseArgs } from './generic-transformers';
describe('SMOVE', () => {
it('transformArguments', () => {
assert.deepEqual(
parseArgs(SMOVE, 'source', 'destination', 'member'),
['SMOVE', 'source', 'destination', 'member']
);
});
testUtils.testAll('sMove', async client => {
assert.equal(
await client.sMove('{tag}source', '{tag}destination', 'member'),
0
);
}, {
client: GLOBAL.SERVERS.OPEN,
cluster: GLOBAL.CLUSTERS.OPEN
});
});