From 6133bdf89208487bb53be42ef7f03a4da3673d74 Mon Sep 17 00:00:00 2001 From: Greg Walker Date: Fri, 2 Aug 2024 09:45:08 -0500 Subject: [PATCH] remove attempt to specify @here name --- src/scripts/federal-holidays-reminder.js | 2 +- src/scripts/federal-holidays-reminder.test.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scripts/federal-holidays-reminder.js b/src/scripts/federal-holidays-reminder.js index 3221ac6..17cbe52 100644 --- a/src/scripts/federal-holidays-reminder.js +++ b/src/scripts/federal-holidays-reminder.js @@ -50,7 +50,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 b9c998d..b00b515 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:! .+$/, ), });