1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

fix MOVE spec

This commit is contained in:
dovi
2023-05-03 14:07:30 -04:00
parent d810ce644b
commit e85fa11e81
3 changed files with 10 additions and 3 deletions

View File

@@ -10,10 +10,13 @@ describe('MOVE', () => {
);
});
testUtils.testWithClient('client.move', async client => {
testUtils.testAll('move', async client => {
assert.equal(
await client.move('key', 1),
1
);
}, GLOBAL.SERVERS.OPEN);
}, {
client: GLOBAL.SERVERS.OPEN,
cluster: GLOBAL.CLUSTERS.OPEN
});
});

View File

@@ -93,6 +93,7 @@ import LREM from './LREM';
import LSET from './LSET';
import LTRIM from './LTRIM';
import MGET from './MGET';
import MOVE from './MOVE';
import MSET from './MSET';
import MSETNX from './MSETNX';
import PERSIST from './PERSIST';
@@ -376,6 +377,8 @@ export default {
lTrim: LTRIM,
MGET,
mGet: MGET,
MOVE,
move: MOVE,
MSET,
mSet: MSET,
MSETNX,