You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
* fix #2189 - add graph --compact support * clean code * fix graph string param escaping * fix "is not assignable to parameter of type 'GraphClientType'" * fix README
This commit is contained in:
17
packages/graph/lib/commands/RO_QUERY.spec.ts
Normal file
17
packages/graph/lib/commands/RO_QUERY.spec.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { strict as assert } from 'assert';
|
||||
import testUtils, { GLOBAL } from '../test-utils';
|
||||
import { transformArguments } from './RO_QUERY';
|
||||
|
||||
describe('RO_QUERY', () => {
|
||||
it('transformArguments', () => {
|
||||
assert.deepEqual(
|
||||
transformArguments('key', 'query'),
|
||||
['GRAPH.RO_QUERY', 'key', 'query']
|
||||
);
|
||||
});
|
||||
|
||||
testUtils.testWithClient('client.graph.roQuery', async client => {
|
||||
const { data } = await client.graph.roQuery('key', 'RETURN 0');
|
||||
assert.deepEqual(data, [[0]]);
|
||||
}, GLOBAL.SERVERS.OPEN);
|
||||
});
|
Reference in New Issue
Block a user