mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
using pre-compiled handlebar templates
re-did static content from nancy
This commit is contained in:
parent
3720afd30d
commit
375f887539
21 changed files with 367 additions and 124 deletions
21
NzbDrone.Api.Test/StaticResourceMapperFixture.cs
Normal file
21
NzbDrone.Api.Test/StaticResourceMapperFixture.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
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