Skip to content

Commit

Permalink
update:Add->TestRouteAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
VanSonNguyen522 committed May 19, 2024
1 parent ac2a986 commit ae37235
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions __tests__/api/users/[id]/post/route.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,11 @@ describe("API User Prompt", () => {
expect(res.status).toBe(200);
expect(data).toMatchSnapshot()
})

it("shoud be [GET} reuturn status code from API /api/users/[id]/posts/route", async () => {
// const res = await GET();
// const data = await res.json();
// console.log(data);
// expect(res.status).toBe(200)
})
})

0 comments on commit ae37235

Please sign in to comment.