Skip to content

Commit

Permalink
fix unit test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
KensukeTakahara committed Feb 11, 2022
1 parent 9644b7b commit b3a8171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/libs/core/tests/handle/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b3a8171

Please sign in to comment.