NodeRedis/node-redis

View on GitHub
packages/client/lib/commands/PUBSUB_NUMPAT.spec.ts

Summary

Maintainability
A
40 mins
Test Coverage
import { strict as assert } from 'node:assert';
import testUtils, { GLOBAL } from '../test-utils';
import PUBSUB_NUMPAT from './PUBSUB_NUMPAT';
import { parseArgs } from './generic-transformers';

describe('PUBSUB NUMPAT', () => {
  it('transformArguments', () => {
    assert.deepEqual(
      parseArgs(PUBSUB_NUMPAT),
      ['PUBSUB', 'NUMPAT']
    );
  });

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