refactor: update estimated schedule test to use current date
This commit is contained in:
@@ -2,7 +2,10 @@ import { expect, test } from "vitest";
|
|||||||
import { scrapeEstimatedSchedule } from "../src/parsers/index.js";
|
import { scrapeEstimatedSchedule } from "../src/parsers/index.js";
|
||||||
|
|
||||||
test("returns estimated schedule anime release", async () => {
|
test("returns estimated schedule anime release", async () => {
|
||||||
const data = await scrapeEstimatedSchedule("2024-03-30");
|
const d = new Date();
|
||||||
|
const data = await scrapeEstimatedSchedule(
|
||||||
|
`${d.getFullYear()}-${d.getMonth() + 1}-${d.getDate()}`
|
||||||
|
);
|
||||||
|
|
||||||
expect(data.scheduledAnimes).not.toEqual([]);
|
expect(data.scheduledAnimes).not.toEqual([]);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user