aboutsummaryrefslogtreecommitdiff
path: root/test/animeEpisodes.test.ts
blob: fbe75ae40be3be55ecd638060b73bda36ec85f6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { HiAnime } from "aniwatch";
import { expect, test } from "vitest";

const animeId = "steinsgate-3";

// npx vitest run animeEpisodes.test.ts
test(`GET /api/v2/hianime/anime/${animeId}/episodes`, async () => {
  const hianime = new HiAnime.Scraper();
  const data = await hianime.getEpisodes(animeId);

  expect(data.totalEpisodes).not.toEqual(0);
  expect(data.episodes).not.toEqual([]);
});