pull/2827/head
Anderson Shindy Oki 4 weeks ago
parent ecfd487ed2
commit a24be92d52

@ -7,6 +7,16 @@ import BlacklistMoviesView from ".";
describe("Blacklist Movies", () => { describe("Blacklist Movies", () => {
it("should render with blacklisted movies", async () => { it("should render with blacklisted movies", async () => {
server.use(
http.get("/api/system/settings", () => {
return HttpResponse.json({
general: {
theme: "auto",
},
});
}),
);
server.use( server.use(
http.get("/api/movies/blacklist", () => { http.get("/api/movies/blacklist", () => {
// TODO: Replace with Factory // TODO: Replace with Factory

@ -5,7 +5,7 @@ import server from "@/tests/mocks/node";
import HistoryStats from "./HistoryStats"; import HistoryStats from "./HistoryStats";
describe("History Stats", () => { describe("History Stats", () => {
it("should render with stats", async () => { it("should render without stats", async () => {
server.use( server.use(
http.get("/api/providers", () => { http.get("/api/providers", () => {
return HttpResponse.json({ return HttpResponse.json({
@ -21,7 +21,7 @@ describe("History Stats", () => {
server.use( server.use(
http.get("/api/history/stats", () => { http.get("/api/history/stats", () => {
return HttpResponse.json({ return HttpResponse.json({
data: [], series: [],
}); });
}), }),
); );
@ -33,7 +33,5 @@ describe("History Stats", () => {
); );
render(<HistoryStats />); render(<HistoryStats />);
// TODO: Assert
}); });
}); });

Loading…
Cancel
Save