1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-10 11:43:01 +03:00
Files
node-redis/lib/commands/SCRIPT_DEBUG.spec.ts

20 lines
539 B
TypeScript

import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient } from '../test-utils';
import { transformArguments } from './SCRIPT_DEBUG';
describe('SCRIPT DEBUG', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('NO'),
['SCRIPT', 'DEBUG', 'NO']
);
});
itWithClient(TestRedisServers.OPEN, 'client.scriptDebug', async client => {
assert.equal(
await client.scriptDebug('NO'),
'OK'
);
});
});