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