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

20 lines
543 B
TypeScript

import { strict as assert } from 'assert';
import { TestRedisServers, itWithClient } from '../test-utils';
import { transformArguments } from './MEMORY_DOCTOR';
describe('MEMORY DOCTOR', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments(),
['MEMORY', 'DOCTOR']
);
});
itWithClient(TestRedisServers.OPEN, 'client.memoryDoctor', async client => {
assert.equal(
typeof (await client.memoryDoctor()),
'string'
);
});
});