You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
24 lines
606 B
TypeScript
24 lines
606 B
TypeScript
import { strict as assert } from 'assert';
|
|
import testUtils from '../test-utils';
|
|
import { transformArguments } from './ACL_CAT';
|
|
|
|
describe('ACL CAT', () => {
|
|
testUtils.isVersionGreaterThanHook([6]);
|
|
|
|
describe('transformArguments', () => {
|
|
it('simple', () => {
|
|
assert.deepEqual(
|
|
transformArguments(),
|
|
['ACL', 'CAT']
|
|
);
|
|
});
|
|
|
|
it('with categoryName', () => {
|
|
assert.deepEqual(
|
|
transformArguments('dangerous'),
|
|
['ACL', 'CAT', 'dangerous']
|
|
);
|
|
});
|
|
});
|
|
});
|