Update index.test.ts
This commit is contained in:
parent
123fb784ca
commit
93b1f0334e
@ -238,14 +238,14 @@ describe("E2E Tests for API Routes", () => {
|
|||||||
});
|
});
|
||||||
}, 60000); // 60 seconds
|
}, 60000); // 60 seconds
|
||||||
|
|
||||||
it("should return a successful response with a valid API key and valid excludes option", async () => {
|
it("should return a successful response with a valid API key and limit to 3", async () => {
|
||||||
const crawlResponse = await request(TEST_URL)
|
const crawlResponse = await request(TEST_URL)
|
||||||
.post("/v0/crawl")
|
.post("/v0/crawl")
|
||||||
.set("Authorization", `Bearer ${process.env.TEST_API_KEY}`)
|
.set("Authorization", `Bearer ${process.env.TEST_API_KEY}`)
|
||||||
.set("Content-Type", "application/json")
|
.set("Content-Type", "application/json")
|
||||||
.send({
|
.send({
|
||||||
url: "https://mendable.ai",
|
url: "https://mendable.ai",
|
||||||
limit: 3,
|
crawlerOptions: { limit: 3 },
|
||||||
});
|
});
|
||||||
|
|
||||||
let isFinished = false;
|
let isFinished = false;
|
||||||
@ -327,7 +327,7 @@ describe("E2E Tests for API Routes", () => {
|
|||||||
.set("Content-Type", "application/json")
|
.set("Content-Type", "application/json")
|
||||||
.send({
|
.send({
|
||||||
url: "https://mendable.ai",
|
url: "https://mendable.ai",
|
||||||
limit: 10,
|
crawlerOptions: { onlyMainContent: true, limit: 10 },
|
||||||
});
|
});
|
||||||
|
|
||||||
const response = await request(TEST_URL)
|
const response = await request(TEST_URL)
|
||||||
|
Loading…
Reference in New Issue
Block a user