From 7533b1e0b445349d521efc9ba03f77e24e4973cb Mon Sep 17 00:00:00 2001 From: Ritesh Ghosh Date: Mon, 7 Aug 2023 20:38:57 +0530 Subject: test: added animeGenre test --- test/animeGenre.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/animeGenre.test.ts (limited to 'test') diff --git a/test/animeGenre.test.ts b/test/animeGenre.test.ts new file mode 100644 index 0000000..79aa702 --- /dev/null +++ b/test/animeGenre.test.ts @@ -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([]); +}); -- cgit v1.2.3