aboutsummaryrefslogtreecommitdiff
path: root/test/animeSearchSuggestion.test.ts
blob: f3a875aeb34d6d6bfefa434788fa4f73cc63b660 (plain)
1
2
3
4
5
6
7
8
import { expect, test } from "vitest";
import { scrapeAnimeSearchSuggestion } from "../src/parsers/index.js";

test("returns animes search suggestions related to search query", async () => {
  const data = await scrapeAnimeSearchSuggestion("one piece");

  expect(data.suggestions).not.toEqual([]);
});