mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-23 06:21:05 +00:00
wip
This commit is contained in:
parent
ecfd487ed2
commit
a24be92d52
2 changed files with 12 additions and 4 deletions
|
@ -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…
Reference in a new issue