diff --git a/frontend/src/pages/Blacklist/Movies/index.test.tsx b/frontend/src/pages/Blacklist/Movies/index.test.tsx index 3fad35fcf..a2fc491e4 100644 --- a/frontend/src/pages/Blacklist/Movies/index.test.tsx +++ b/frontend/src/pages/Blacklist/Movies/index.test.tsx @@ -7,6 +7,16 @@ import BlacklistMoviesView from "."; describe("Blacklist Movies", () => { it("should render with blacklisted movies", async () => { + server.use( + http.get("/api/system/settings", () => { + return HttpResponse.json({ + general: { + theme: "auto", + }, + }); + }), + ); + server.use( http.get("/api/movies/blacklist", () => { // TODO: Replace with Factory diff --git a/frontend/src/pages/History/Statistics/HistoryStats.test.tsx b/frontend/src/pages/History/Statistics/HistoryStats.test.tsx index 10bcfe732..66fc88403 100644 --- a/frontend/src/pages/History/Statistics/HistoryStats.test.tsx +++ b/frontend/src/pages/History/Statistics/HistoryStats.test.tsx @@ -5,7 +5,7 @@ import server from "@/tests/mocks/node"; import HistoryStats from "./HistoryStats"; describe("History Stats", () => { - it("should render with stats", async () => { + it("should render without stats", async () => { server.use( http.get("/api/providers", () => { return HttpResponse.json({ @@ -21,7 +21,7 @@ describe("History Stats", () => { server.use( http.get("/api/history/stats", () => { return HttpResponse.json({ - data: [], + series: [], }); }), ); @@ -33,7 +33,5 @@ describe("History Stats", () => { ); render(); - - // TODO: Assert }); });