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

test("returns animes produced by a producer", async () => {
  const data = await scrapeProducerAnimes("toei-animation", 2);

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