test: update tests directory

This commit is contained in:
Ritesh Ghosh
2025-05-12 00:03:39 +05:30
parent a72f469f40
commit 468a6e3ef9
12 changed files with 0 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { expect, test } from "vitest";
import { HiAnime } from "aniwatch";
const animeEpisodeId = "steinsgate-3?ep=230";
const server = "hd-1";
const category = "sub";
// npx vitest run animeEpisodeSrcs.test.ts
test(`GET /api/v2/hianime/episode/sources?animeEpisodeId=${animeEpisodeId}&server=${server}&category=${category}`, async () => {
const hianime = new HiAnime.Scraper();
const data = await hianime.getEpisodeSources(
animeEpisodeId,
server,
category
);
expect(data.sources).not.toEqual([]);
});