aniwatch / test /animeAboutInfo.test.ts
ChinnaRengamani
1
11acfd9
raw
history blame contribute delete
435 Bytes
import { expect, test } from "vitest";
import { scrapeAnimeAboutInfo } from "../src/parsers/index.js";
test("returns information about an anime", async () => {
const data = await scrapeAnimeAboutInfo("steinsgate-3");
expect(data.anime.info.name).not.toEqual(null);
expect(data.recommendedAnimes).not.toEqual([]);
expect(data.mostPopularAnimes).not.toEqual([]);
expect(Object.keys(data.anime.moreInfo)).not.toEqual([]);
});