Skip to content
This repository was archived by the owner on Jun 29, 2024. It is now read-only.

Commit 370fbb0

Browse files
Fix time zone in tests
1 parent 14608de commit 370fbb0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,4 +334,5 @@ src/PrayerTracker/appsettings.json
334334
docs/_site
335335
**/*.db*
336336

337-
.ionide
337+
.ionide
338+
.vscode

src/PrayerTracker.Tests/UI/ViewModelsTests.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ let requestListTests =
604604
}
605605
let html = htmlList.AsHtml _s
606606
let expected =
607-
htmlList.Requests[0].UpdatedDate.InUtc().Date.ToString ("d", null)
607+
htmlList.Requests[0].UpdatedDate.InZone(SmallGroup.timeZone reqList.SmallGroup).Date.ToString ("d", null)
608608
|> sprintf """<strong>Zeb</strong> &ndash; zyx<i style="font-size:9.60pt">&nbsp; (as of %s)</i>"""
609609
// spot check; if one request has it, they all should
610610
Expect.stringContains html expected "Expected short as-of date not found"
@@ -619,7 +619,7 @@ let requestListTests =
619619
}
620620
let html = htmlList.AsHtml _s
621621
let expected =
622-
htmlList.Requests[0].UpdatedDate.InUtc().Date.ToString ("D", null)
622+
htmlList.Requests[0].UpdatedDate.InZone(SmallGroup.timeZone reqList.SmallGroup).Date.ToString ("D", null)
623623
|> sprintf """<strong>Zeb</strong> &ndash; zyx<i style="font-size:9.60pt">&nbsp; (as of %s)</i>"""
624624
// spot check; if one request has it, they all should
625625
Expect.stringContains html expected "Expected long as-of date not found"

0 commit comments

Comments
 (0)