NodeRedis/node-redis

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

Summary

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

describe('EVALSHA_RO', () => {
  testUtils.isVersionGreaterThanHook([7]);

  it('transformArguments', () => {
    assert.deepEqual(
      parseArgs(EVALSHA_RO, 'sha1', {
        keys: ['key'],
        arguments: ['argument']
      }),
      ['EVALSHA_RO', 'sha1', '1', 'key', 'argument']
    );
  });
});