Skip to content

Commit 1618630

Browse files
authored
run tests in redis >= 7, fix integration test
1 parent 44fad50 commit 1618630

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

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

+14-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import testUtils, { GLOBAL } from '../test-utils';
33
import { transformArguments } from './PUBSUB_SHARDNUMSUB';
44

55
describe('PUBSUB SHARDNUMSUB', () => {
6+
testUtils.isVersionGreaterThanHook([7]);
7+
68
describe('transformArguments', () => {
79
it('simple', () => {
810
assert.deepEqual(
@@ -29,10 +31,18 @@ describe('PUBSUB SHARDNUMSUB', () => {
2931
testUtils.testWithClient('client.pubSubShardNumSub', async client => {
3032
assert.deepEqual(
3133
await client.pubSubShardNumSub(['foo', 'bar']),
32-
{
33-
foo: 0,
34-
bar: 0
35-
}
34+
Object.create(null, {
35+
foo: {
36+
value: 0,
37+
configurable: true,
38+
enumerable: true
39+
},
40+
bar: {
41+
value: 0,
42+
configurable: true,
43+
enumerable: true
44+
}
45+
})
3646
);
3747
}, GLOBAL.SERVERS.OPEN);
3848
});

0 commit comments

Comments
 (0)