mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-13 18:46:04 +08:00
Update apps/api/src/__tests__/snips/scrape.test.ts
Co-authored-by: Gergő Móricz <mo.geryy@gmail.com>
This commit is contained in:
parent
4026866c15
commit
0c5bd85540
@ -95,23 +95,6 @@ describe("Scrape tests", () => {
|
|||||||
expect(response.changeTracking).toBeDefined();
|
expect(response.changeTracking).toBeDefined();
|
||||||
expect(response.changeTracking?.previousScrapeAt).not.toBeNull();
|
expect(response.changeTracking?.previousScrapeAt).not.toBeNull();
|
||||||
}, 30000);
|
}, 30000);
|
||||||
|
|
||||||
it.concurrent("enforces a minimum waitFor of 5000ms", async () => {
|
|
||||||
const response1 = await scrape({
|
|
||||||
url: "https://example.com",
|
|
||||||
formats: ["markdown", "changeTracking"],
|
|
||||||
});
|
|
||||||
|
|
||||||
expect(response1.changeTracking).toBeDefined();
|
|
||||||
|
|
||||||
const response2 = await scrape({
|
|
||||||
url: "https://example.com",
|
|
||||||
formats: ["markdown", "changeTracking"],
|
|
||||||
waitFor: 1000,
|
|
||||||
});
|
|
||||||
|
|
||||||
expect(response2.changeTracking).toBeDefined();
|
|
||||||
}, 30000);
|
|
||||||
|
|
||||||
it.concurrent("includes git diff when requested", async () => {
|
it.concurrent("includes git diff when requested", async () => {
|
||||||
const response = await scrape({
|
const response = await scrape({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user