Skip to content

Commit

Permalink
Update test descriptions/names
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Nov 23, 2024
1 parent 787c76c commit 9f8119f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers/broadcastCalendar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import {
endOfBroadcastWeek
} from "./broadcastCalendar";

describe("Broadcast Date Functions", () => {
describe("broadcastCalendar", () => {
test("getBroadcastWeeksInMonth should return correct number of weeks", () => {
// Test for a month with 5 weeks
expect(getBroadcastWeeksInMonth(new Date(2023, 0, 1))).toBe(5); // January 2023
// Test for a month with 4 weeks
expect(getBroadcastWeeksInMonth(new Date(2023, 1, 1))).toBe(4); // February 2023
});

test("getBroadcastStartDate should return correct start date", () => {
test("startOfBroadcastWeek should return correct start date", () => {
// Test for a month starting on a Monday
expect(startOfBroadcastWeek(new Date(2023, 0, 1))).toEqual(
new Date(2022, 11, 26)
Expand All @@ -23,7 +23,7 @@ describe("Broadcast Date Functions", () => {
); // December 30 2019
});

test("getBroadcastEndDate should return correct end date", () => {
test("endOfBroadcastWeek should return correct end date", () => {
const startDate = startOfBroadcastWeek(new Date(2023, 0, 1));
expect(endOfBroadcastWeek(new Date(2023, 0, 1))).toEqual(
new Date(
Expand Down

0 comments on commit 9f8119f

Please sign in to comment.