Debian Codegraph @

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

raw
1 import { strict as assert } from 'assert';
2 import testUtils, { GLOBAL } from '../test-utils';
3 import { transformArguments } from './CONFIG_GET';
4
5 describe('CONFIG GET', () => {
6 it('transformArguments', () => {
7 assert.deepEqual(
8 transformArguments('TIMEOUT'),
9 ['FT.CONFIG', 'GET', 'TIMEOUT']
10 );
11 });
12
13 testUtils.testWithClient('client.ft.configGet', async client => {
14 assert.deepEqual(
15 await client.ft.configGet('TIMEOUT'),
16 Object.create(null, {
17 TIMEOUT: {
18 value: '500',
19 configurable: true,
20 enumerable: true
21 }
22 })
23 );
24 }, GLOBAL.SERVERS.OPEN);
25 });