aboutsummaryrefslogtreecommitdiff
path: root/test/animeAboutInfo.test.ts
blob: 2cdc0cb8639f3ee52eb153e9daa57a39783c4a51 (plain)
1
2
3
4
5
6
7
8
9
10
11
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([]);
});