Skip to content

Commit faea248

Browse files
committed
wip
1 parent 2455ab2 commit faea248

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

packages/client/lib/commands/ACL_LOG.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('ACL LOG', () => {
2424
testUtils.testWithClient('client.aclLog', async client => {
2525
// make sure to create at least one log
2626
await Promise.all([
27-
client.aclSetUser('test', 'on >test'),
27+
client.aclSetUser('test', 'on +@all'),
2828
client.auth({
2929
username: 'test',
3030
password: 'test'
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
import { strict as assert } from 'assert';
22
import testUtils from '../test-utils';
3-
import { transformArguments } from './ACL_SETUSER';
3+
import ACL_SETUSER from './ACL_SETUSER';
44

55
describe('ACL SETUSER', () => {
6-
testUtils.isVersionGreaterThanHook([6]);
6+
testUtils.isVersionGreaterThanHook([6]);
77

8-
describe('transformArguments', () => {
9-
it('string', () => {
10-
assert.deepEqual(
11-
transformArguments('username', 'allkeys'),
12-
['ACL', 'SETUSER', 'username', 'allkeys']
13-
);
14-
});
8+
describe('transformArguments', () => {
9+
it('string', () => {
10+
assert.deepEqual(
11+
ACL_SETUSER.transformArguments('username', 'allkeys'),
12+
['ACL', 'SETUSER', 'username', 'allkeys']
13+
);
14+
});
1515

16-
it('array', () => {
17-
assert.deepEqual(
18-
transformArguments('username', ['allkeys', 'allchannels']),
19-
['ACL', 'SETUSER', 'username', 'allkeys', 'allchannels']
20-
);
21-
});
16+
it('array', () => {
17+
assert.deepEqual(
18+
ACL_SETUSER.transformArguments('username', ['allkeys', 'allchannels']),
19+
['ACL', 'SETUSER', 'username', 'allkeys', 'allchannels']
20+
);
2221
});
22+
});
2323
});
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { strict as assert } from 'assert';
22
import testUtils from '../test-utils';
3-
import { transformArguments } from './ACL_USERS';
3+
import ACL_USERS from './ACL_USERS';
44

55
describe('ACL USERS', () => {
6-
testUtils.isVersionGreaterThanHook([6]);
6+
testUtils.isVersionGreaterThanHook([6]);
77

8-
it('transformArguments', () => {
9-
assert.deepEqual(
10-
transformArguments(),
11-
['ACL', 'USERS']
12-
);
13-
});
8+
it('transformArguments', () => {
9+
assert.deepEqual(
10+
ACL_USERS.transformArguments(),
11+
['ACL', 'USERS']
12+
);
13+
});
1414
});
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { strict as assert } from 'assert';
22
import testUtils from '../test-utils';
3-
import { transformArguments } from './ACL_WHOAMI';
3+
import ACL_WHOAMI from './ACL_WHOAMI';
44

55
describe('ACL WHOAMI', () => {
6-
testUtils.isVersionGreaterThanHook([6]);
6+
testUtils.isVersionGreaterThanHook([6]);
77

8-
it('transformArguments', () => {
9-
assert.deepEqual(
10-
transformArguments(),
11-
['ACL', 'WHOAMI']
12-
);
13-
});
8+
it('transformArguments', () => {
9+
assert.deepEqual(
10+
ACL_WHOAMI.transformArguments(),
11+
['ACL', 'WHOAMI']
12+
);
13+
});
1414
});

0 commit comments

Comments
 (0)