mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 20:59:00 +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
@ -96,23 +96,6 @@ describe("Scrape tests", () => {
|
||||
expect(response.changeTracking?.previousScrapeAt).not.toBeNull();
|
||||
}, 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 () => {
|
||||
const response = await scrape({
|
||||
url: "https://example.com",
|
||||
|
Loading…
x
Reference in New Issue
Block a user