This repository has been archived on 2026-07-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
aniwatch-api/test/animeSearch.test.ts
T
2024-01-07 17:23:46 +05:30

10 lines
310 B
TypeScript

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([]);
});