Something went wrong. Try again.
TypeScript client for accessing TLE Community.
Something went wrong. Try again.
123456789101112131415161718192021222324import { getLacuna } from '../__utils__/get-lacuna';import { expectMatchesApiSchema } from '../__utils__/validate-schema';import Lacuna from '../lacuna';
let lacuna: Lacuna;
beforeAll(async () => { lacuna = await getLacuna();});
test('fetch', async () => { const { result } = await lacuna.captcha.fetch(); expect(result?.guid).toBeDefined(); expect(result?.url).toBeDefined(); expectMatchesApiSchema('captcha', 'fetch', result);});
test('solve', async () => { const { error } = await lacuna.captcha.solve({ guid: 'test', solution: 'test' });
expect(error).toBeDefined(); expect(error?.code).toEqual(expect.any(Number));});