import {expect} from "chai" import { runGQL } from "../e2e_helper"; let headers = { 'x-device-id': '123testDeviceId', } describe('Captcha', function () { it('get new job', async () => { const query = ` {captchaGetJob(label: "test:123") { id task }}`; const result = await runGQL(query, headers); expect(typeof result.data.captchaGetJob.id).to.equal("string"); expect(typeof result.data.captchaGetJob.task).to.equal("string"); expect(result.errors).to.be.undefined; }); });