test: added animeSearch test
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { scrapeAnimeSearch } from "../src/parsers";
|
||||
|
||||
test("returns animes related to search query", async () => {
|
||||
const data = await scrapeAnimeSearch("monster", 2);
|
||||
|
||||
expect(data.animes).not.toEqual([]);
|
||||
expect(data.mostPopularAnimes).not.toEqual([]);
|
||||
});
|
||||
Reference in New Issue
Block a user