test: update estimated schedule test to use zero padded date in date string

This commit is contained in:
Ritesh Ghosh
2024-07-15 20:18:04 +05:30
parent 968fca634e
commit d27e7583de
+1 -1
View File
@@ -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([]);