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/LPOP.spec.ts

27 lines
683 B
TypeScript

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