1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-03 04:01:40 +03:00
Files
node-redis/packages/client/lib/commands/OBJECT_ENCODING.spec.ts
Avital Fine 515adf1346 Support OBJECT [...] commands (#2014)
* Support OBJECT [...] commands

* move commands to cluster/commands.ts

Co-authored-by: leibale <leibale1998@gmail.com>
2022-03-27 13:35:01 -04:00

20 lines
554 B
TypeScript

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