Starts fixing up integration tests
This commit is contained in:
@@ -89,7 +89,7 @@ namespace Umbraco.Web.Common.AspNetCore
|
||||
public string ToAbsolute(string virtualPath)
|
||||
{
|
||||
if (!virtualPath.StartsWith("~/") && !virtualPath.StartsWith("/"))
|
||||
throw new InvalidOperationException($"{nameof(virtualPath)} must start with ~/ or /");
|
||||
throw new InvalidOperationException($"The value {virtualPath} for parameter {nameof(virtualPath)} must start with ~/ or /");
|
||||
|
||||
// will occur if it starts with "/"
|
||||
if (Uri.IsWellFormedUriString(virtualPath, UriKind.Absolute))
|
||||
|
||||
@@ -9,6 +9,11 @@ namespace Umbraco.Web.Common.RuntimeMinification
|
||||
{
|
||||
public void Compose(Composition composition)
|
||||
{
|
||||
|
||||
// TODO: For this to work we need to have services.AddSmidge() based on the Smidge APIs but our composer APIs don't really let us do that
|
||||
// This makes it a bit awkward to boot the runtime since that call would need to be made outside of the composer... .hrm...
|
||||
|
||||
|
||||
composition.RegisterUnique<IRuntimeMinifier, SmidgeRuntimeMinifier>();
|
||||
composition.RegisterUnique<SmidgeHelperAccessor>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user