diff options
| author | Ritesh Ghosh <[email protected]> | 2024-07-14 00:07:31 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2024-07-14 00:07:31 +0530 |
| commit | e84ba45e39b7de854d1932057e2e73b61799f392 (patch) | |
| tree | 2833b69f86ff29325001154a033aca3fe92ff1b8 /test | |
| parent | cb113cb38a4912c78b8ee1d96a20061759081de0 (diff) | |
| download | aniwatch-api-e84ba45e39b7de854d1932057e2e73b61799f392.tar.xz aniwatch-api-e84ba45e39b7de854d1932057e2e73b61799f392.zip | |
refactor: update estimated schedule test to use current date
Diffstat (limited to 'test')
| -rw-r--r-- | test/estimatedSchedule.test.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/estimatedSchedule.test.ts b/test/estimatedSchedule.test.ts index cd5f417..1aacc52 100644 --- a/test/estimatedSchedule.test.ts +++ b/test/estimatedSchedule.test.ts @@ -2,7 +2,10 @@ import { expect, test } from "vitest"; import { scrapeEstimatedSchedule } from "../src/parsers/index.js"; 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([]); }); |
