mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-03 21:54:47 -04:00
17 lines
443 B
C#
17 lines
443 B
C#
using API.Helpers.Converters;
|
|
using Xunit;
|
|
|
|
namespace API.Tests.Converters
|
|
{
|
|
public class CronConverterTests
|
|
{
|
|
[Theory]
|
|
[InlineData("daily", "0 0 * * *")]
|
|
[InlineData("disabled", "0 0 31 2 *")]
|
|
[InlineData("weekly", "0 0 * * 1")]
|
|
public void ConvertTest(string input, string expected)
|
|
{
|
|
Assert.Equal(expected, CronConverter.ConvertToCronNotation(input));
|
|
}
|
|
}
|
|
} |