mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-14 04:36:02 +08:00
Merge branch 'main' of https://github.com/mendableai/firecrawl
This commit is contained in:
commit
e19dc68718
@ -6,7 +6,7 @@ import { describe, test, expect } from '@jest/globals';
|
|||||||
dotenv.config();
|
dotenv.config();
|
||||||
|
|
||||||
const TEST_API_KEY = process.env.TEST_API_KEY;
|
const TEST_API_KEY = process.env.TEST_API_KEY;
|
||||||
const API_URL = "https://api.firecrawl.dev";
|
const API_URL = process.env.API_URL ?? "https://api.firecrawl.dev";
|
||||||
|
|
||||||
describe('FirecrawlApp E2E Tests', () => {
|
describe('FirecrawlApp E2E Tests', () => {
|
||||||
test.concurrent('should throw error for no API key', async () => {
|
test.concurrent('should throw error for no API key', async () => {
|
||||||
|
@ -346,9 +346,9 @@ export default class FirecrawlApp {
|
|||||||
`${this.apiUrl}/v1/crawl/${id}`,
|
`${this.apiUrl}/v1/crawl/${id}`,
|
||||||
headers
|
headers
|
||||||
);
|
);
|
||||||
if (response.status === 200 && getAllData) {
|
if (response.status === 200) {
|
||||||
let allData = response.data.data;
|
let allData = response.data.data;
|
||||||
if (response.data.status === "completed") {
|
if (getAllData && response.data.status === "completed") {
|
||||||
let statusData = response.data
|
let statusData = response.data
|
||||||
if ("data" in statusData) {
|
if ("data" in statusData) {
|
||||||
let data = statusData.data;
|
let data = statusData.data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user