diff options
| author | Ritesh Ghosh <[email protected]> | 2024-07-15 20:18:04 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2024-07-15 20:18:04 +0530 |
| commit | d27e7583dea4a78a37328f7c357e2aa8727b0021 (patch) | |
| tree | 84602264032fbecc52e909a0543d667395d65d67 /test | |
| parent | 968fca634e99ea138cef8ac79c463cee5137ba5e (diff) | |
| download | aniwatch-api-d27e7583dea4a78a37328f7c357e2aa8727b0021.tar.xz aniwatch-api-d27e7583dea4a78a37328f7c357e2aa8727b0021.zip | |
test: update estimated schedule test to use zero padded date in date string
Diffstat (limited to 'test')
| -rw-r--r-- | test/estimatedSchedule.test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/estimatedSchedule.test.ts b/test/estimatedSchedule.test.ts index cd6ea0d..40b6956 100644 --- a/test/estimatedSchedule.test.ts +++ b/test/estimatedSchedule.test.ts @@ -8,7 +8,7 @@ function padZero(num: number) { test("returns estimated schedule anime release", async () => { const d = new Date(); const data = await scrapeEstimatedSchedule( - `${d.getFullYear()}-${padZero(d.getMonth() + 1)}-${d.getDate()}` + `${d.getFullYear()}-${padZero(d.getMonth() + 1)}-${padZero(d.getDate())}` ); expect(data.scheduledAnimes).not.toEqual([]); |
