Skip to content

Commit 44fad50

Browse files
authored
clean tests
1 parent 6ac8a41 commit 44fad50

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

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

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,12 @@ describe('PUBSUB SHARDNUMSUB', () => {
2727
});
2828

2929
testUtils.testWithClient('client.pubSubShardNumSub', async client => {
30-
assert.deepEqual(
31-
await client.pubSubShardNumSub(),
32-
Object.create(null)
33-
);
34-
35-
assert.deepEqual(
36-
await client.pubSubShardNumSub('channel'),
37-
{ 'channel': 0 }
38-
);
39-
4030
assert.deepEqual(
4131
await client.pubSubShardNumSub(['foo', 'bar']),
42-
{ 'foo': 0, 'bar': 0 }
32+
{
33+
foo: 0,
34+
bar: 0
35+
}
4336
);
4437
}, GLOBAL.SERVERS.OPEN);
4538
});

packages/client/lib/commands/PUBSUB_SHARDNUMSUB.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function transformArguments(
1616
export function transformReply(rawReply: Array<string | number>): Record<string, number> {
1717
const transformedReply = Object.create(null);
1818

19-
for (let i = 0; i < rawReply.length; i +=2) {
19+
for (let i = 0; i < rawReply.length; i += 2) {
2020
transformedReply[rawReply[i]] = rawReply[i + 1];
2121
}
2222

0 commit comments

Comments
 (0)