mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-23 13:57:06 -04:00
Fixed health check wiki link unit tests
This commit is contained in:
parent
55a7253dc2
commit
b84f84ad0a
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ namespace NzbDrone.Core.Test.HealthCheck
|
|||
[TestFixture]
|
||||
public class HealthCheckFixture : CoreTest
|
||||
{
|
||||
private const string WikiRoot = "https://wiki.servarr.com/Sonarr";
|
||||
private const string WikiRoot = "https://wiki.servarr.com/";
|
||||
[TestCase("I blew up because of some weird user mistake", null, WikiRoot + "Sonarr_System#i_blew_up_because_of_some_weird_user_mistake")]
|
||||
[TestCase("I blew up because of some weird user mistake", "#my_health_check", WikiRoot + "Sonarr_System#my_health_check")]
|
||||
[TestCase("I blew up because of some weird user mistake", "Custom_Page#my_health_check", WikiRoot + "Custom_Page#my_health_check")]
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace NzbDrone.Core.HealthCheck
|
|||
|
||||
private static string MakeWikiFragment(string message)
|
||||
{
|
||||
return "#" + CleanFragmentRegex.Replace(message.ToLower(), string.Empty).Replace(' ', '-');
|
||||
return "#" + CleanFragmentRegex.Replace(message.ToLower(), string.Empty).Replace(' ', '_');
|
||||
}
|
||||
|
||||
private static HttpUri MakeWikiUrl(string fragment)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue