1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
Files
node-redis/packages/client/lib/commands/MEMORY_MALLOC-STATS.spec.ts
2023-05-14 14:42:48 +03:00

20 lines
537 B
TypeScript

import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import MEMORY_MALLOC_STATS from './MEMORY_MALLOC-STATS';
describe('MEMORY MALLOC-STATS', () => {
it('transformArguments', () => {
assert.deepEqual(
MEMORY_MALLOC_STATS.transformArguments(),
['MEMORY', 'MALLOC-STATS']
);
});
testUtils.testWithClient('client.memoryMallocStats', async client => {
assert.equal(
typeof (await client.memoryMallocStats()),
'string'
);
}, GLOBAL.SERVERS.OPEN);
});