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

29 lines
738 B
TypeScript

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