1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-02-22 22:10:42 +00:00
This commit is contained in:
Anderson Shindy Oki 2025-01-28 10:25:34 +09:00
parent ecfd487ed2
commit a24be92d52
2 changed files with 12 additions and 4 deletions

View file

@ -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

View file

@ -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(<HistoryStats />);
// TODO: Assert
});
});