Skip to content

Commit

Permalink
Match backend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
textbook committed Jun 2, 2024
1 parent acff58a commit 34460ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/App.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ describe("Main Page", () => {
it("Removes the video when asked to do", async () => {
// we create another fake backend that listens on the delete call, and returns success
server.use(
http.delete("/api/videos/1", () => HttpResponse.json({ success: true }))
http.delete(
"/api/videos/1",
() => new HttpResponse(null, { status: 204 })
)
);

// we find the delete button on the website
Expand Down

0 comments on commit 34460ff

Please sign in to comment.