diff --git a/Jellyfin.Plugin.Herald.Tests/IndexHtmlTransformerTests.cs b/Jellyfin.Plugin.Herald.Tests/IndexHtmlTransformerTests.cs new file mode 100644 index 0000000..abe735b --- /dev/null +++ b/Jellyfin.Plugin.Herald.Tests/IndexHtmlTransformerTests.cs @@ -0,0 +1,47 @@ +using Jellyfin.Plugin.Herald.Injection; + +namespace Jellyfin.Plugin.Herald.Tests; + +public class IndexHtmlTransformerTests +{ + private const string Page = "
"; + + [Fact] + public void Inject_AddsTheScriptBeforeTheClosingBodyTag() + { + var result = IndexHtmlTransformer.Inject(Page); + + Assert.EndsWith(IndexHtmlTransformer.ScriptTag + "