packages/search/lib/commands/_LIST.spec.ts
raw| 1 | import { strict as assert } from 'assert'; |
| 2 | import testUtils, { GLOBAL } from '../test-utils'; |
| 3 | import { transformArguments } from './_LIST'; |
| 4 | |
| 5 | describe('_LIST', () => { |
| 6 | it('transformArguments', () => { |
| 7 | assert.deepEqual( |
| 8 | transformArguments(), |
| 9 | ['FT._LIST'] |
| 10 | ); |
| 11 | }); |
| 12 | |
| 13 | testUtils.testWithClient('client.ft._list', async client => { |
| 14 | assert.deepEqual( |
| 15 | await client.ft._list(), |
| 16 | [] |
| 17 | ); |
| 18 | }, GLOBAL.SERVERS.OPEN); |
| 19 | }); |