10 lines
294 B
TypeScript
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([]);
|
|
});
|