mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 11:38:32 -07:00
Fixed tests
This commit is contained in:
parent
3df6b65666
commit
e8706354b9
6 changed files with 13 additions and 6 deletions
|
@ -28,6 +28,12 @@ namespace PlexRequests.Helpers.Analytics
|
|||
{
|
||||
public enum Action
|
||||
{
|
||||
Donate
|
||||
Donate,
|
||||
ClickButton,
|
||||
Delete,
|
||||
Create,
|
||||
Save,
|
||||
Update,
|
||||
Start
|
||||
}
|
||||
}
|
|
@ -35,6 +35,7 @@ namespace PlexRequests.Helpers.Analytics
|
|||
LandingPage,
|
||||
Api,
|
||||
Issues,
|
||||
UserLogin
|
||||
UserLogin,
|
||||
Services,
|
||||
}
|
||||
}
|
|
@ -551,7 +551,7 @@ namespace PlexRequests.Services.Tests
|
|||
// {
|
||||
// Title = "Hi",
|
||||
// Year = "2017",
|
||||
// ParentTitle = "c"
|
||||
//ParentTitle = "c"
|
||||
// },
|
||||
// new Directory1
|
||||
// {
|
||||
|
|
|
@ -35,6 +35,7 @@ using PlexRequests.Api.Models.Plex;
|
|||
using PlexRequests.Core;
|
||||
using PlexRequests.Core.SettingModels;
|
||||
using PlexRequests.Helpers;
|
||||
using PlexRequests.Helpers.Analytics;
|
||||
using PlexRequests.Services.Interfaces;
|
||||
using PlexRequests.Services.Models;
|
||||
using PlexRequests.Services.Notification;
|
||||
|
@ -44,6 +45,8 @@ using PlexRequests.Store.Repository;
|
|||
|
||||
using Quartz;
|
||||
|
||||
using Action = PlexRequests.Helpers.Analytics.Action;
|
||||
|
||||
namespace PlexRequests.Services.Jobs
|
||||
{
|
||||
public class PlexAvailabilityChecker : IJob, IAvailabilityChecker
|
||||
|
|
|
@ -51,7 +51,6 @@ namespace PlexRequests.UI.Tests
|
|||
yield return new TestCaseData(DateTime.Now.AddDays(2), DateTime.Now).Returns(false); // End in past
|
||||
yield return new TestCaseData(DateTime.Now.AddDays(2), DateTime.Now.AddDays(3)).Returns(false); // Not started yet
|
||||
yield return new TestCaseData(DateTime.Now.AddDays(-5), DateTime.Now.AddDays(-1)).Returns(false); // Finished yesterday
|
||||
yield return new TestCaseData(DateTime.Now.AddMilliseconds(200), DateTime.Now.AddMilliseconds(900)).Returns(true); // Just about to start but not yet
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,8 +26,6 @@
|
|||
#endregion
|
||||
using System;
|
||||
|
||||
using Nancy.Helpers;
|
||||
|
||||
using NLog;
|
||||
|
||||
using Owin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue