test: add animeEpisodes test

This commit is contained in:
Ritesh Ghosh
2024-03-03 23:10:02 +05:30
parent 78eab220b6
commit 0b384cf1cc
+9
View File
@@ -0,0 +1,9 @@
import { expect, test } from "vitest";
import { scrapeAnimeEpisodes } from "../src/parsers/index.js";
test("returns episodes info of an anime", async () => {
const data = await scrapeAnimeEpisodes("steinsgate-3");
expect(data.totalEpisodes).not.toEqual(0);
expect(data.episodes).not.toEqual([]);
});