You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
wip
This commit is contained in:
@@ -23,8 +23,8 @@ describe('LMPOP', () => {
|
||||
});
|
||||
});
|
||||
|
||||
testUtils.testAll('lmPop', async client => {
|
||||
assert.deepEqual(
|
||||
testUtils.testAll('lmPop - null', async client => {
|
||||
assert.equal(
|
||||
await client.lmPop('key', 'RIGHT'),
|
||||
null
|
||||
);
|
||||
@@ -32,4 +32,19 @@ describe('LMPOP', () => {
|
||||
client: GLOBAL.SERVERS.OPEN,
|
||||
cluster: GLOBAL.SERVERS.OPEN
|
||||
});
|
||||
|
||||
testUtils.testAll('lmPop - with member', async client => {
|
||||
const [, reply] = await Promise.all([
|
||||
client.lPush('key', 'element'),
|
||||
client.lmPop('key', 'RIGHT')
|
||||
]);
|
||||
|
||||
assert.deepEqual(reply, [
|
||||
'key',
|
||||
['element']
|
||||
]);
|
||||
}, {
|
||||
client: GLOBAL.SERVERS.OPEN,
|
||||
cluster: GLOBAL.SERVERS.OPEN
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user