You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
29 lines
679 B
TypeScript
29 lines
679 B
TypeScript
import { strict as assert } from 'node:assert';
|
|
import testUtils, { GLOBAL } from '../test-utils';
|
|
import GEORADIUS_RO from './GEORADIUS_RO';
|
|
|
|
describe('GEORADIUS_RO', () => {
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
GEORADIUS_RO.transformArguments('key', {
|
|
longitude: 1,
|
|
latitude: 2
|
|
}, 3, 'm'),
|
|
['GEORADIUS_RO', 'key', '1', '2', '3', 'm']
|
|
);
|
|
});
|
|
|
|
testUtils.testAll('geoRadiusRo', async client => {
|
|
assert.deepEqual(
|
|
await client.geoRadiusRo('key', {
|
|
longitude: 1,
|
|
latitude: 2
|
|
}, 3, 'm'),
|
|
[]
|
|
);
|
|
}, {
|
|
client: GLOBAL.SERVERS.OPEN,
|
|
cluster: GLOBAL.CLUSTERS.OPEN
|
|
});
|
|
});
|