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/animeGenre.test.ts
T
2023-08-07 20:38:57 +05:30

10 lines
294 B
TypeScript

import { scrapeGenreAnime } from "../src/parsers";
test("returns animes belonging to a genre", async () => {
const data = await scrapeGenreAnime("shounen", 2);
expect(data.animes).not.toEqual([]);
expect(data.genres).not.toEqual([]);
expect(data.topAiringAnimes).not.toEqual([]);
});