mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-15 20:55:56 +08:00
Update test: Make second test more meaningful
Co-Authored-By: Nicolas Camara <nick@sideguide.dev>
This commit is contained in:
parent
1b9c545340
commit
bb26d12cb4
@ -32,7 +32,7 @@ describe("Map tests", () => {
|
||||
expect(response.body.links.some(x => x.match(/^https:\/\/www\.hfea\.gov\.uk\/choose-a-clinic\/clinic-search\/results\/?\?options=\d+$/))).toBe(true);
|
||||
}, 60000);
|
||||
|
||||
it.concurrent("handles query parameters correctly with existing mock", async () => {
|
||||
it.concurrent("properly filters URLs in results", async () => {
|
||||
let response = await map({
|
||||
url: "https://www.hfea.gov.uk",
|
||||
sitemapOnly: true,
|
||||
@ -41,6 +41,6 @@ describe("Map tests", () => {
|
||||
|
||||
expect(response.statusCode).toBe(200);
|
||||
expect(response.body.success).toBe(true);
|
||||
expect(response.body.links.some(x => x.match(/^https:\/\/www\.hfea\.gov\.uk\/choose-a-clinic\/clinic-search\/results\/?\?options=\d+$/))).toBe(true);
|
||||
expect(response.body.links.every(link => link.startsWith("http"))).toBe(true);
|
||||
}, 60000);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user