Stabilize unit and UI tests for SportsTime
This commit is contained in:
@@ -25,7 +25,7 @@ struct ScrapedGameTests {
|
||||
sport: Sport = .mlb
|
||||
) -> ScrapedGame {
|
||||
ScrapedGame(
|
||||
date: Date(),
|
||||
date: TestClock.now,
|
||||
homeTeam: homeTeam,
|
||||
awayTeam: awayTeam,
|
||||
homeScore: homeScore,
|
||||
@@ -69,7 +69,7 @@ struct ScrapedGameTests {
|
||||
|
||||
@Test("ScrapedGame: stores date")
|
||||
func scrapedGame_date() {
|
||||
let date = Date()
|
||||
let date = TestClock.now
|
||||
let game = ScrapedGame(
|
||||
date: date,
|
||||
homeTeam: "Home",
|
||||
|
||||
Reference in New Issue
Block a user