Debian Codegraph @

packages/search/lib/commands/SYNDUMP.spec.ts

raw
1 import { strict as assert } from 'assert';
2 import testUtils, { GLOBAL } from '../test-utils';
3 import { transformArguments } from './SYNDUMP';
4 import { SchemaFieldTypes } from '.';
5
6 describe('SYNDUMP', () => {
7 it('transformArguments', () => {
8 assert.deepEqual(
9 transformArguments('index'),
10 ['FT.SYNDUMP', 'index']
11 );
12 });
13
14 testUtils.testWithClient('client.ft.synDump', async client => {
15 await client.ft.create('index', {
16 field: SchemaFieldTypes.TEXT
17 });
18
19 assert.deepEqual(
20 await client.ft.synDump('index'),
21 []
22 );
23 }, GLOBAL.SERVERS.OPEN);
24 });