We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cfd60f commit 17cd833Copy full SHA for 17cd833
packages/client/lib/commands/VLINKS.spec.ts
@@ -17,8 +17,29 @@ describe('VLINKS', () => {
17
18
const result = await client.vLinks('key', 'element1');
19
assert.ok(Array.isArray(result));
20
+ assert.equal(result.length, 1)
21
+ assert.ok(Array.isArray(result[0]));
22
+ assert.equal(result[0].length, 1);
23
+ assert.equal(result[0][0], 'element2');
24
}, {
25
client: GLOBAL.SERVERS.OPEN,
26
cluster: GLOBAL.CLUSTERS.OPEN
27
});
28
+
29
+ testUtils.testWithClient('vLinks with RESP3', async client => {
30
+ await client.vAdd('resp3-key', [1.0, 2.0, 3.0], 'element1');
31
+ await client.vAdd('resp3-key', [1.1, 2.1, 3.1], 'element2');
32
33
+ const result = await client.vLinks('resp3-key', 'element1');
34
+ assert.ok(Array.isArray(result));
35
36
37
38
39
+ }, {
40
+ ...GLOBAL.SERVERS.OPEN,
41
+ clientOptions: {
42
+ RESP: 3
43
+ }
44
+ });
45
0 commit comments