test: added animeCategory test
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { scrapeAnimeCategory } from "../src/parsers";
|
||||
|
||||
test("returns animes belonging to a category", async () => {
|
||||
const data = await scrapeAnimeCategory("subbed-anime");
|
||||
|
||||
expect(data.animes).not.toEqual([]);
|
||||
expect(data.genres).not.toEqual([]);
|
||||
expect(data.top10Animes.today).not.toEqual([]);
|
||||
expect(data.top10Animes.week).not.toEqual([]);
|
||||
expect(data.top10Animes.month).not.toEqual([]);
|
||||
});
|
||||
Reference in New Issue
Block a user