feat: update VersionData
parent
858f9a3bcc
commit
812e7ab611
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue