test: update estimated schedule test to use zero padded date in date string
This commit is contained in:
@@ -8,7 +8,7 @@ function padZero(num: number) {
|
|||||||
test("returns estimated schedule anime release", async () => {
|
test("returns estimated schedule anime release", async () => {
|
||||||
const d = new Date();
|
const d = new Date();
|
||||||
const data = await scrapeEstimatedSchedule(
|
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([]);
|
expect(data.scheduledAnimes).not.toEqual([]);
|
||||||
|
|||||||
Reference in New Issue
Block a user