Skip to content

Commit d0de622

Browse files
committed
increase HSET test coverage
1 parent 2d18125 commit d0de622

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,17 @@ describe('HSET', () => {
1212
);
1313
});
1414

15+
it('number', () => {
16+
assert.deepEqual(
17+
transformArguments('key', '1', '2'),
18+
['HSET', 'key', '1', '2']
19+
);
20+
});
21+
1522
it('Buffer', () => {
1623
assert.deepEqual(
17-
transformArguments('key', Buffer.from('field'), Buffer.from('value')),
18-
['HSET', 'key', Buffer.from('field'), Buffer.from('value')]
24+
transformArguments(Buffer.from('key'), Buffer.from('field'), Buffer.from('value')),
25+
['HSET', Buffer.from('key'), Buffer.from('field'), Buffer.from('value')]
1926
);
2027
});
2128
});

0 commit comments

Comments
 (0)