NodeRedis/node-redis

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

Summary

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

describe('GRAPH.LIST', () => {
  it('transformArguments', () => {
    assert.deepEqual(
      parseArgs(LIST),
      ['GRAPH.LIST']
    );
  });

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