diff options
| -rw-r--r-- | test/animeGenre.test.ts | 9 |
1 files changed, 9 insertions, 0 deletions
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([]); +}); |
