mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
static resources are mapped to full path instead of relative.
This commit is contained in:
parent
43b4262e14
commit
3f44339381
5 changed files with 10 additions and 24 deletions
|
@ -75,7 +75,6 @@
|
|||
<Compile Include="ClientSchemaTests\SchemaBuilderFixture.cs" />
|
||||
<Compile Include="MappingTests\ReflectionExtensionFixture.cs" />
|
||||
<Compile Include="MappingTests\ResourceMappingFixture.cs" />
|
||||
<Compile Include="StaticResourceMapperFixture.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
using System.IO;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Api.Frontend;
|
||||
using NzbDrone.Test.Common;
|
||||
|
||||
namespace NzbDrone.Api.Test
|
||||
{
|
||||
[TestFixture]
|
||||
public class StaticResourceMapperFixture : TestBase<StaticResourceMapper>
|
||||
{
|
||||
[TestCase("/app.js", Result = "ui|app.js")]
|
||||
[TestCase("/series/app.js", Result = "ui|series|app.js")]
|
||||
[TestCase("series/app.js", Result = "ui|series|app.js")]
|
||||
[TestCase("Series/App.js", Result = "ui|series|app.js")]
|
||||
public string should_map_paths(string path)
|
||||
{
|
||||
return Subject.Map(path).Replace(Path.DirectorySeparatorChar, '|');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue