This commit is contained in:
Nicolas 2024-04-23 16:57:53 -07:00
parent e6779aff68
commit 4328a68ec1
2 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ describe("E2E Tests for API Routes with No Authentication", () => {
expect(response.statusCode).not.toBe(401);
});
it("should return a successful response with a valid API key", async () => {
it("should return a successful response without a valid API key", async () => {
const response = await request(TEST_URL)
.post("/v0/search")
.set("Content-Type", "application/json")
@ -126,7 +126,7 @@ describe("E2E Tests for API Routes with No Authentication", () => {
expect(response.body).toHaveProperty("success");
expect(response.body.success).toBe(true);
expect(response.body).toHaveProperty("data");
});
}, 20000);
});
describe("GET /v0/crawl/status/:jobId", () => {

View File

@ -158,7 +158,7 @@ const TEST_URL = "http://127.0.0.1:3002";
expect(response.body).toHaveProperty("success");
expect(response.body.success).toBe(true);
expect(response.body).toHaveProperty("data");
}, 20000);
}, 20000);
});
describe("GET /v0/crawl/status/:jobId", () => {