NodeRedis/node-redis

View on GitHub
packages/graph/lib/commands/CONFIG_GET.spec.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import CONFIG_GET from './CONFIG_GET';
import { parseArgs } from '@redis/client/lib/commands/generic-transformers';

describe('GRAPH.CONFIG GET', () => {
  it('transformArguments', () => {
    assert.deepEqual(
      parseArgs(CONFIG_GET, 'TIMEOUT'),
      ['GRAPH.CONFIG', 'GET', 'TIMEOUT']
    );
  });

  testUtils.testWithClient('client.graph.configGet', async client => {
    assert.deepEqual(
      await client.graph.configGet('TIMEOUT'),
      [
        'TIMEOUT',
        0
      ]
    );
  }, GLOBAL.SERVERS.OPEN);
});