(prefix: string)
| 60 | |
| 61 | it('offers swarm subcommand argument completions', () => { |
| 62 | const values = (prefix: string): string[] | null => { |
| 63 | const items = swarmArgumentCompletions(prefix); |
| 64 | return items === null ? null : items.map((item) => item.value); |
| 65 | }; |
| 66 | |
| 67 | expect(values('')).toEqual(['on', 'off']); |
| 68 | expect(values('O')).toEqual(['on', 'off']); |
no test coverage detected