fix: missing mock
This commit is contained in:
@@ -2,7 +2,7 @@ import { HttpResponse, http } from "msw";
|
|||||||
|
|
||||||
export function getAniwatchEpisodes() {
|
export function getAniwatchEpisodes() {
|
||||||
return http.get(
|
return http.get(
|
||||||
"https://aniwatch.up.railway.app/anime/episodes/:aniListId",
|
"https://aniwatch.up.railway.app/api/v2/hianime/anime/:aniListId/episodes",
|
||||||
({ params }) => {
|
({ params }) => {
|
||||||
const aniListId = Number(params["aniListId"]);
|
const aniListId = Number(params["aniListId"]);
|
||||||
if (aniListId === 4) {
|
if (aniListId === 4) {
|
||||||
|
|||||||
Reference in New Issue
Block a user