1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00
Files
node-redis/packages/client/lib/commands/RPOP.spec.ts

27 lines
683 B
TypeScript

import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import { transformArguments } from './RPOP';
describe('RPOP', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key'),
['RPOP', 'key']
);
});
testUtils.testWithClient('client.rPop', async client => {
assert.equal(
await client.rPop('key'),
null
);
}, GLOBAL.SERVERS.OPEN);
testUtils.testWithCluster('cluster.rPop', async cluster => {
assert.equal(
await cluster.rPop('key'),
null
);
}, GLOBAL.CLUSTERS.OPEN);
});