From 67f3d4742c0a48d5f6f690d190b32b2b052fc50c Mon Sep 17 00:00:00 2001 From: Leon Hoppe Date: Sun, 19 Jan 2025 16:05:10 +0100 Subject: [PATCH] Tested login functionality --- .../Components/Layout/HopFrameLayoutTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/HopFrame.Tests.Web/Components/Layout/HopFrameLayoutTests.cs b/tests/HopFrame.Tests.Web/Components/Layout/HopFrameLayoutTests.cs index 62bb28a..068a090 100644 --- a/tests/HopFrame.Tests.Web/Components/Layout/HopFrameLayoutTests.cs +++ b/tests/HopFrame.Tests.Web/Components/Layout/HopFrameLayoutTests.cs @@ -62,6 +62,7 @@ public class HopFrameLayoutTests : TestContext { Services.AddSingleton(navMock); Services.AddHopFrame(config); + Services.AddSingleton(authHandlerMock.Object); JSInterop.Mode = JSRuntimeMode.Loose; @@ -69,6 +70,6 @@ public class HopFrameLayoutTests : TestContext { var cut = RenderComponent(); // Assert - // TODO: check if uri matches + Assert.Equal("http://localhost/login?redirect=/", navMock.Uri); } } \ No newline at end of file