Colorscape Love (#3326)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
b44f89d1e8
commit
a847468a6c
42 changed files with 1009 additions and 429 deletions
|
@ -2080,7 +2080,7 @@ public class SeriesServiceTests : AbstractDbTest
|
|||
public async Task GetEstimatedChapterCreationDate_NextChapter_ChaptersMonthApart()
|
||||
{
|
||||
await ResetDb();
|
||||
var now = DateTime.UtcNow;
|
||||
var now = DateTime.Parse("2021-01-01"); // 10/31/2024 can trigger an edge case bug
|
||||
|
||||
_context.Library.Add(new LibraryBuilder("Test LIb")
|
||||
.WithAppUser(new AppUserBuilder("majora2007", string.Empty).Build())
|
||||
|
@ -2103,6 +2103,7 @@ public class SeriesServiceTests : AbstractDbTest
|
|||
Assert.Equal(Parser.LooseLeafVolumeNumber, nextChapter.VolumeNumber);
|
||||
Assert.Equal(5, nextChapter.ChapterNumber);
|
||||
Assert.NotNull(nextChapter.ExpectedDate);
|
||||
|
||||
var expected = now.AddMonths(4);
|
||||
Assert.Equal(expected.Month, nextChapter.ExpectedDate.Value.Month);
|
||||
Assert.True(nextChapter.ExpectedDate.Value.Day >= expected.Day - 1 || nextChapter.ExpectedDate.Value.Day <= expected.Day + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue