NodeRedis/node-redis

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

Summary

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

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

  testUtils.testWithClient('client.graph.configSet', async client => {
    assert.equal(
      await client.graph.configSet('TIMEOUT', 0),
      'OK'
    );
  }, GLOBAL.SERVERS.OPEN);
});