1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00
This commit is contained in:
Leibale
2023-06-19 18:54:22 -04:00
parent 2455ab2089
commit faea2488af
4 changed files with 33 additions and 33 deletions

View File

@@ -24,7 +24,7 @@ describe('ACL LOG', () => {
testUtils.testWithClient('client.aclLog', async client => {
// make sure to create at least one log
await Promise.all([
client.aclSetUser('test', 'on >test'),
client.aclSetUser('test', 'on +@all'),
client.auth({
username: 'test',
password: 'test'

View File

@@ -1,6 +1,6 @@
import { strict as assert } from 'assert';
import testUtils from '../test-utils';
import { transformArguments } from './ACL_SETUSER';
import ACL_SETUSER from './ACL_SETUSER';
describe('ACL SETUSER', () => {
testUtils.isVersionGreaterThanHook([6]);
@@ -8,14 +8,14 @@ describe('ACL SETUSER', () => {
describe('transformArguments', () => {
it('string', () => {
assert.deepEqual(
transformArguments('username', 'allkeys'),
ACL_SETUSER.transformArguments('username', 'allkeys'),
['ACL', 'SETUSER', 'username', 'allkeys']
);
});
it('array', () => {
assert.deepEqual(
transformArguments('username', ['allkeys', 'allchannels']),
ACL_SETUSER.transformArguments('username', ['allkeys', 'allchannels']),
['ACL', 'SETUSER', 'username', 'allkeys', 'allchannels']
);
});

View File

@@ -1,13 +1,13 @@
import { strict as assert } from 'assert';
import testUtils from '../test-utils';
import { transformArguments } from './ACL_USERS';
import ACL_USERS from './ACL_USERS';
describe('ACL USERS', () => {
testUtils.isVersionGreaterThanHook([6]);
it('transformArguments', () => {
assert.deepEqual(
transformArguments(),
ACL_USERS.transformArguments(),
['ACL', 'USERS']
);
});

View File

@@ -1,13 +1,13 @@
import { strict as assert } from 'assert';
import testUtils from '../test-utils';
import { transformArguments } from './ACL_WHOAMI';
import ACL_WHOAMI from './ACL_WHOAMI';
describe('ACL WHOAMI', () => {
testUtils.isVersionGreaterThanHook([6]);
it('transformArguments', () => {
assert.deepEqual(
transformArguments(),
ACL_WHOAMI.transformArguments(),
['ACL', 'WHOAMI']
);
});