Skip to content

Commit 7949ac2

Browse files
committed
Update index.test.ts
1 parent 40d8882 commit 7949ac2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/api/src/__tests__/e2e_v1_withAuth_all_params/index.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,11 @@ describe("E2E Tests for v1 API Routes", () => {
328328
.send(scrapeRequest);
329329
console.log("Error1a")
330330
// console.log(response.body)
331-
expect(response.statusCode).toBe(500);
331+
expect(response.statusCode).toBe(200);
332+
if (!("data" in response.body)) {
333+
throw new Error("Expected response body to have 'data' property");
334+
}
335+
expect(response.body.data.metadata.pageStatusCode).toBe(500);
332336
console.log("Error?")
333337

334338
const scrapeRequestWithSkipTlsVerification = {

0 commit comments

Comments
 (0)