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

29 lines
744 B
TypeScript

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