This repository has been archived on 2026-07-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
aniwatch-api/test/animeCategory.test.ts
T
2023-08-07 20:38:43 +05:30

12 lines
406 B
TypeScript

import { scrapeAnimeCategory } from "../src/parsers";
test("returns animes belonging to a category", async () => {
const data = await scrapeAnimeCategory("subbed-anime");
expect(data.animes).not.toEqual([]);
expect(data.genres).not.toEqual([]);
expect(data.top10Animes.today).not.toEqual([]);
expect(data.top10Animes.week).not.toEqual([]);
expect(data.top10Animes.month).not.toEqual([]);
});