1
0
cvsa/packages/crawler/test/bilibili.test.ts

15 lines
462 B
TypeScript

import { describe, expect, test } from "bun:test";
import { getVideoInfo } from "@core/net/getVideoInfo";
import { bulkGetVideoStats } from "net/bulkGetVideoStats";
describe("Bilibili API", () => {
test("bulkGetVideoStats()", async () => {
const res = await bulkGetVideoStats([2]);
expect(res).toBeObject();
});
test("bulkGetVideoStats()", async () => {
const res = await getVideoInfo(2, "snapshotMilestoneVideo");
expect(res).toBeObject();
});
});