diff --git a/src/VersionData.test.ts b/src/VersionData.test.ts index 93ec3c0..43ef87d 100644 --- a/src/VersionData.test.ts +++ b/src/VersionData.test.ts @@ -22,6 +22,10 @@ Deno.test("getSeason", () => { assertEquals(season2?.id, "season202212"); + const season3 = getSeason(new Date("2023-03-01T00:00:00+00:00")); + + assertEquals(season3?.id, "season202303"); + const nonExist = getSeason(new Date("2022-06-09T00:00:00+00:00")); assertEquals(nonExist, undefined); diff --git a/src/VersionData.ts b/src/VersionData.ts index 138cc7c..196f3a5 100644 --- a/src/VersionData.ts +++ b/src/VersionData.ts @@ -18,6 +18,12 @@ export const SEASONS: Season[] = [ start: new Date("2022-12-01T00:00:00+00:00"), end: new Date("2023-03-01T00:00:00+00:00"), }, + { + id: "season202303", + name: "Fresh Season 2023", + start: new Date("2023-03-01T00:00:00+00:00"), + end: new Date("2023-06-01T00:00:00+00:00"), + }, ]; export const getSeason = (date: Date): Season | undefined => {