diff --git a/packages/libs/core/tests/handle/api.test.ts b/packages/libs/core/tests/handle/api.test.ts index c801bb0d91..26c5bc3292 100644 --- a/packages/libs/core/tests/handle/api.test.ts +++ b/packages/libs/core/tests/handle/api.test.ts @@ -139,8 +139,8 @@ describe("Api handler", () => { "Routes api request $uri to page $page with NodeNextRequest & NodeNextResponse", async ({ uri, page }) => { const event: any = mockEvent(uri); - event.req["originalRequest"] = {}; - event.res["originalResponse"] = {}; + event.req.originalRequest = {}; + event.res.originalResponse = {}; const route = await handleApi(event, manifest, routesManifest, getPage); expect(route).toBeFalsy();