Tested login functionality
This commit is contained in:
@@ -62,6 +62,7 @@ public class HopFrameLayoutTests : TestContext {
|
|||||||
|
|
||||||
Services.AddSingleton(navMock);
|
Services.AddSingleton(navMock);
|
||||||
Services.AddHopFrame(config);
|
Services.AddHopFrame(config);
|
||||||
|
Services.AddSingleton(authHandlerMock.Object);
|
||||||
|
|
||||||
JSInterop.Mode = JSRuntimeMode.Loose;
|
JSInterop.Mode = JSRuntimeMode.Loose;
|
||||||
|
|
||||||
@@ -69,6 +70,6 @@ public class HopFrameLayoutTests : TestContext {
|
|||||||
var cut = RenderComponent<HopFrameLayout>();
|
var cut = RenderComponent<HopFrameLayout>();
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
// TODO: check if uri matches
|
Assert.Equal("http://localhost/login?redirect=/", navMock.Uri);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user