test: added animeGenre test
This commit is contained in:
@@ -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([]);
|
||||
});
|
||||
Reference in New Issue
Block a user