test: added animeGenre test

This commit is contained in:
Ritesh Ghosh
2023-08-07 20:38:57 +05:30
parent 59bd46cc35
commit 7533b1e0b4
+9
View File
@@ -0,0 +1,9 @@
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([]);
});