You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
22 lines
505 B
TypeScript
22 lines
505 B
TypeScript
import { strict as assert } from 'node:assert';
|
|
import testUtils, { GLOBAL } from '../test-utils';
|
|
import LINDEX from './LINDEX';
|
|
|
|
describe('LINDEX', () => {
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
LINDEX.transformArguments('key', 0),
|
|
['LINDEX', 'key', '0']
|
|
);
|
|
});
|
|
|
|
testUtils.testAll('lIndex', async client => {
|
|
assert.equal(
|
|
await client.lIndex('key', 0),
|
|
null
|
|
);
|
|
}, {
|
|
client: GLOBAL.SERVERS.OPEN,
|
|
cluster: GLOBAL.CLUSTERS.OPEN
|
|
});
|
|
}); |