Skip to content

Commit 4d354fe

Browse files
committed
[CAE-686] Minor pushTuples change, renamed HSETEX test
1 parent 07d9aec commit 4d354fe

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe('HSETEX parseCommand', () => {
7070

7171
// TODO: enable when new test container is released
7272
describe.skip('HSETEX call', () => {
73-
testUtils.testWithClientIfVersionWithinRange([[8], 'LATEST'], 'hSetEx empty single field', async client => {
73+
testUtils.testWithClientIfVersionWithinRange([[8], 'LATEST'], 'hSetEx calls', async client => {
7474
assert.deepEqual(
7575
await client.hSetEx('key', {expiration: {type: "EX", value: 500}, mode: "FNX"}, 'filed1', 'value1'),
7676
1

packages/client/lib/commands/HSETEX.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ function pushTuples(parser: CommandParser, tuples: HSETEXTuples): void {
8989
}
9090

9191
parser.push((tmpParser.redisArgs.length/2).toString())
92-
tmpParser.redisArgs.forEach(arg => {
93-
parser.push(arg)
94-
});
92+
parser.push(...tmpParser.redisArgs)
9593
}
9694

9795
function _pushTuples(parser: CommandParser, tuples: HSETEXTuples): void {

0 commit comments

Comments
 (0)