1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
Files
node-redis/packages/client/lib/commands/SINTER.spec.ts
Leibale 8d615e99ed wip
2023-04-27 19:17:11 -04:00

32 lines
681 B
TypeScript

import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import SINTER from './SINTER';
describe('SINTER', () => {
describe('transformArguments', () => {
it('string', () => {
assert.deepEqual(
SINTER.transformArguments('key'),
['SINTER', 'key']
);
});
it('array', () => {
assert.deepEqual(
SINTER.transformArguments(['1', '2']),
['SINTER', '1', '2']
);
});
});
testUtils.testAll('sInter', async client => {
assert.deepEqual(
await client.sInter('key'),
[]
);
}, {
client: GLOBAL.SERVERS.OPEN,
cluster: GLOBAL.CLUSTERS.OPEN
});
});