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

test("returns animes related to search query", async () => {
  const data = await scrapeAnimeSearch("monster", 2);

  expect(data.animes).not.toEqual([]);
  expect(data.mostPopularAnimes).not.toEqual([]);
});