mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-22 22:10:42 +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", () => {
|
||||
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
|
||||
|
|
|
@ -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
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue