From 81456fc1fc5d74dac328b96f995c1fde4b9ef729 Mon Sep 17 00:00:00 2001 From: leibale Date: Mon, 19 Jul 2021 16:59:40 -0400 Subject: [PATCH] fix GEOSEARCH & GEOSEARCHSTORE --- lib/commands/GEOSEARCH.spec.ts | 4 +++- lib/commands/GEOSEARCHSTORE.spec.ts | 4 +++- lib/commands/GEOSEARCH_WITH.spec.ts | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/commands/GEOSEARCH.spec.ts b/lib/commands/GEOSEARCH.spec.ts index 764a247155..a8606b3f74 100644 --- a/lib/commands/GEOSEARCH.spec.ts +++ b/lib/commands/GEOSEARCH.spec.ts @@ -1,8 +1,10 @@ import { strict as assert } from 'assert'; -import { TestRedisServers, itWithClient, TestRedisClusters, itWithCluster } from '../test-utils'; +import { TestRedisServers, itWithClient, TestRedisClusters, itWithCluster, describeHandleMinimumRedisVersion } from '../test-utils'; import { transformArguments } from './GEOSEARCH'; describe('GEOSEARCH', () => { + describeHandleMinimumRedisVersion([6, 2]); + it('transformArguments', () => { assert.deepEqual( transformArguments('key', 'member', { diff --git a/lib/commands/GEOSEARCHSTORE.spec.ts b/lib/commands/GEOSEARCHSTORE.spec.ts index a1938ef362..6f7426adde 100644 --- a/lib/commands/GEOSEARCHSTORE.spec.ts +++ b/lib/commands/GEOSEARCHSTORE.spec.ts @@ -1,8 +1,10 @@ import { strict as assert } from 'assert'; -import { TestRedisServers, itWithClient, TestRedisClusters, itWithCluster } from '../test-utils'; +import { TestRedisServers, itWithClient, TestRedisClusters, itWithCluster, describeHandleMinimumRedisVersion } from '../test-utils'; import { transformArguments } from './GEOSEARCHSTORE'; describe('GEOSEARCHSTORE', () => { + describeHandleMinimumRedisVersion([6, 2]); + it('transformArguments', () => { assert.deepEqual( transformArguments('destination', 'source', 'member', { diff --git a/lib/commands/GEOSEARCH_WITH.spec.ts b/lib/commands/GEOSEARCH_WITH.spec.ts index de363f42fa..a400fb965c 100644 --- a/lib/commands/GEOSEARCH_WITH.spec.ts +++ b/lib/commands/GEOSEARCH_WITH.spec.ts @@ -1,10 +1,12 @@ import { strict as assert } from 'assert'; import { TransformArgumentsReply } from '.'; -import { TestRedisServers, itWithClient, TestRedisClusters, itWithCluster } from '../test-utils'; +import { TestRedisServers, itWithClient, TestRedisClusters, itWithCluster, describeHandleMinimumRedisVersion } from '../test-utils'; import { GeoReplyWith } from './generic-transformers'; import { transformArguments } from './GEOSEARCH_WITH'; describe('GEOSEARCH WITH', () => { + describeHandleMinimumRedisVersion([6, 2]); + it('transformArguments', () => { const expectedReply: TransformArgumentsReply = ['GEOSEARCH', 'key', 'FROMMEMBER', 'member', 'BYRADIUS', '1', 'm', 'WITHDIST'] expectedReply.preserve = ['WITHDIST'];