File size: 454 Bytes
11acfd9
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import { expect, test } from "vitest";
import { scrapeAnimeCategory } from "../src/parsers/index.js";

test("returns animes belonging to a category", async () => {
  const data = await scrapeAnimeCategory("subbed-anime");

  expect(data.animes).not.toEqual([]);
  expect(data.genres).not.toEqual([]);
  expect(data.top10Animes.today).not.toEqual([]);
  expect(data.top10Animes.week).not.toEqual([]);
  expect(data.top10Animes.month).not.toEqual([]);
});