mirror of
https://github.com/fxm90/GradientLoadingBar.git
synced 2026-06-16 12:24:31 +00:00
♻️ :: Adapt tests
This commit is contained in:
@@ -103,9 +103,12 @@ final class GradientActivityIndicatorViewModelTestCase: XCTestCase {
|
||||
}
|
||||
receivedIsAnimating.removeAll()
|
||||
|
||||
let size = CGSize(width: .random(in: 1 ... 100), height: .random(in: 1 ... 100))
|
||||
let bounds = CGRect(origin: .zero, size: size)
|
||||
|
||||
// When
|
||||
withExtendedLifetime(disposable) {
|
||||
viewModel.bounds = CGRect(origin: .zero, size: .zero)
|
||||
viewModel.bounds = bounds
|
||||
}
|
||||
|
||||
// Then
|
||||
@@ -120,6 +123,9 @@ final class GradientActivityIndicatorViewModelTestCase: XCTestCase {
|
||||
receivedIsAnimating.append(isAnimating)
|
||||
}
|
||||
|
||||
let size = CGSize(width: .random(in: 1 ... 100), height: .random(in: 1 ... 100))
|
||||
let bounds = CGRect(origin: .zero, size: size)
|
||||
|
||||
viewModel.isHidden = true
|
||||
receivedIsAnimating.removeAll()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user