From 7f9404dff39fd25f935a04e48b86a7240542559d Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Mon, 2 Jun 2025 00:00:28 -0500 Subject: [PATCH] chore: stub out tests --- .../YouTube/Handlers/NotificationHandler.cs | 2 +- .../Unit/NotificationHandlerTests.cs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/tests/StevesBot.Webhook.Tests/Unit/NotificationHandlerTests.cs diff --git a/src/src/StevesBot.Webhook/YouTube/Handlers/NotificationHandler.cs b/src/src/StevesBot.Webhook/YouTube/Handlers/NotificationHandler.cs index c7257e3..7d809f7 100644 --- a/src/src/StevesBot.Webhook/YouTube/Handlers/NotificationHandler.cs +++ b/src/src/StevesBot.Webhook/YouTube/Handlers/NotificationHandler.cs @@ -9,7 +9,7 @@ internal static class NotificationHandler [FromServices] IDiscordRestClient discordRestClient, [FromServices] IOptionsMonitor discordNotificationOptions, [FromServices] ILastPostedStreamStore lastPostedStream, - CancellationToken cancellationToken + CancellationToken cancellationToken = default ) { using StreamReader stream = new(context.Request.Body); diff --git a/src/tests/StevesBot.Webhook.Tests/Unit/NotificationHandlerTests.cs b/src/tests/StevesBot.Webhook.Tests/Unit/NotificationHandlerTests.cs new file mode 100644 index 0000000..64e8ccc --- /dev/null +++ b/src/tests/StevesBot.Webhook.Tests/Unit/NotificationHandlerTests.cs @@ -0,0 +1,6 @@ +namespace StevesBot.Webhook.Tests.Unit; + +public class NotificationHandlerTests +{ + +} \ No newline at end of file