feat: update VersionData

main
spacemeowx2 2023-06-02 16:55:04 +08:00
parent 858f9a3bcc
commit 812e7ab611
2 changed files with 10 additions and 0 deletions

View File

@ -26,6 +26,10 @@ Deno.test("getSeason", () => {
assertEquals(season3?.id, "season202303");
const season4 = getSeason(new Date("2023-06-01T00:00:00+00:00"));
assertEquals(season4?.id, "season202306");
const nonExist = getSeason(new Date("2022-06-09T00:00:00+00:00"));
assertEquals(nonExist, undefined);

View File

@ -24,6 +24,12 @@ export const SEASONS: Season[] = [
start: new Date("2023-03-01T00:00:00+00:00"),
end: new Date("2023-06-01T00:00:00+00:00"),
},
{
id: "season202306",
name: "Sizzle Season 2023",
start: new Date("2023-06-01T00:00:00+00:00"),
end: new Date("2023-09-01T00:00:00+00:00"),
},
];
export const getSeason = (date: Date): Season | undefined => {