File size: 342 Bytes
11acfd9 |
1 2 3 4 5 6 7 8 9 10 11 |
import { expect, test } from "vitest";
import { scrapeGenreAnime } from "../src/parsers/index.js";
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([]);
});
|