You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
fix SMOVE
This commit is contained in:
@@ -1,19 +1,22 @@
|
||||
// import { strict as assert } from 'assert';
|
||||
// import testUtils, { GLOBAL } from '../test-utils';
|
||||
// import { transformArguments } from './SMOVE';
|
||||
import { strict as assert } from 'assert';
|
||||
import testUtils, { GLOBAL } from '../test-utils';
|
||||
import SMOVE from './SMOVE';
|
||||
|
||||
// describe('SMOVE', () => {
|
||||
// it('transformArguments', () => {
|
||||
// assert.deepEqual(
|
||||
// transformArguments('source', 'destination', 'member'),
|
||||
// ['SMOVE', 'source', 'destination', 'member']
|
||||
// );
|
||||
// });
|
||||
describe('SMOVE', () => {
|
||||
it('transformArguments', () => {
|
||||
assert.deepEqual(
|
||||
SMOVE.transformArguments('source', 'destination', 'member'),
|
||||
['SMOVE', 'source', 'destination', 'member']
|
||||
);
|
||||
});
|
||||
|
||||
// testUtils.testWithClient('client.sMove', async client => {
|
||||
// assert.equal(
|
||||
// await client.sMove('source', 'destination', 'member'),
|
||||
// false
|
||||
// );
|
||||
// }, GLOBAL.SERVERS.OPEN);
|
||||
// });
|
||||
testUtils.testAll('sMove', async client => {
|
||||
assert.equal(
|
||||
await client.sMove('{tag}source', '{tag}destination', 'member'),
|
||||
0
|
||||
);
|
||||
}, {
|
||||
client: GLOBAL.SERVERS.OPEN,
|
||||
cluster: GLOBAL.CLUSTERS.OPEN
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user