UNPKG

@confluentinc/ksqldb-graphql

Version:
11 lines (9 loc) 429 B
import { runCommand } from '../requester'; jest.mock('http'); describe('requester', () => { it('requests ksql data', async () => { const command = "show tables extended;"; const data = await runCommand(command, {}); expect(data).toEqual({ "data": { "@type": "source_descriptions", "sourceDescriptions": [], "statementText": "show tables extended;", "warnings": [] }, "statusCode": 200 }); }) });