diff --git a/src/scripts/federal-holidays-reminder.js b/src/scripts/federal-holidays-reminder.js index 8c41f95..31c6bdf 100644 --- a/src/scripts/federal-holidays-reminder.js +++ b/src/scripts/federal-holidays-reminder.js @@ -51,7 +51,7 @@ const scheduleReminder = (_, config = process.env) => { await postMessage({ channel: CHANNEL, - text: ` Remember that *${holiday.date.format( + text: `Remember that *${holiday.date.format( "dddd", )}* is a federal holiday in observance of *${ holiday.alsoObservedAs ?? holiday.name diff --git a/src/scripts/federal-holidays-reminder.test.js b/src/scripts/federal-holidays-reminder.test.js index b00b515..6b8ae79 100644 --- a/src/scripts/federal-holidays-reminder.test.js +++ b/src/scripts/federal-holidays-reminder.test.js @@ -104,7 +104,7 @@ describe("holiday reminder", () => { expect(postMessage).toHaveBeenCalledWith({ channel: "general", text: expect.stringMatching( - /^ Remember that \*Thursday\* is a federal holiday in observance of \*test holiday\*! .+$/, + /^Remember that \*Thursday\* is a federal holiday in observance of \*test holiday\*! .+$/, ), }); @@ -127,7 +127,7 @@ describe("holiday reminder", () => { expect(postMessage).toHaveBeenCalledWith({ channel: "test channel", text: expect.stringMatching( - /^ Remember that \*Thursday\* is a federal holiday in observance of \*test holiday\*! .+$/, + /^Remember that \*Thursday\* is a federal holiday in observance of \*test holiday\*! .+$/, ), }); @@ -145,7 +145,7 @@ describe("holiday reminder", () => { expect(postMessage).toHaveBeenCalledWith({ channel: "general", text: expect.stringMatching( - /^ Remember that \*Thursday\* is a federal holiday in observance of \*Veterans Day\* :salute-you:! .+$/, + /^Remember that \*Thursday\* is a federal holiday in observance of \*Veterans Day\* :salute-you:! .+$/, ), });