Formatted the timer text for the RecordingView view in the Recording package target.
This commit is contained in:
@@ -19,7 +19,7 @@ struct RecordingViewModelTests {
|
||||
|
||||
#expect(model.state == .notRecording)
|
||||
#expect(model.secondsElapsed == 0)
|
||||
#expect(model.timerText == "00:00")
|
||||
#expect(model.textTimer == "00:00")
|
||||
}
|
||||
|
||||
}
|
||||
@@ -179,7 +179,7 @@ struct RecordingViewModelTests {
|
||||
try await Task.sleep(for: .seconds(1.2))
|
||||
|
||||
#expect(model.secondsElapsed >= 1)
|
||||
#expect(model.timerText == "00:01")
|
||||
#expect(model.textTimer == "00:01")
|
||||
|
||||
model.state = .notRecording
|
||||
model.updatedState(shouldRestartTimer: false)
|
||||
|
||||
Reference in New Issue
Block a user