test: add animeSearchSuggestions test
This commit is contained in:
@@ -0,0 +1,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([]);
|
||||
});
|
||||
Reference in New Issue
Block a user