mirror of
https://github.com/fxm90/GradientLoadingBar.git
synced 2026-06-16 12:24:31 +00:00
🚚 :: Restructure test cases
They are now in folders with the same name as the features
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ import XCTest
|
||||
@testable import GradientLoadingBar
|
||||
|
||||
// swiftlint:disable:next type_name
|
||||
final class GradientActivityIndicatorViewAnimateIsHiddenTestCase: XCTestCase {
|
||||
final class GradientActivityIndicatorView_AnimateIsHiddenTestCase: XCTestCase {
|
||||
|
||||
// MARK: - Private properties
|
||||
|
||||
+2
-5
@@ -88,10 +88,7 @@ final class GradientActivityIndicatorViewModelTestCase: XCTestCase {
|
||||
}
|
||||
|
||||
// Then
|
||||
let expectedSizeUpdate =
|
||||
GradientActivityIndicatorViewModel.SizeUpdate(frame: CGRect(x: 0, y: 0, width: size.width * 3, height: size.height),
|
||||
fromValue: size.width * -2)
|
||||
|
||||
let expectedSizeUpdate = GradientActivityIndicatorViewModel.SizeUpdate(bounds: bounds)
|
||||
XCTAssertEqual(receivedSizeUpdate, expectedSizeUpdate)
|
||||
}
|
||||
|
||||
@@ -131,7 +128,7 @@ final class GradientActivityIndicatorViewModelTestCase: XCTestCase {
|
||||
|
||||
// When
|
||||
withExtendedLifetime(disposable) {
|
||||
viewModel.bounds = CGRect(origin: .zero, size: .zero)
|
||||
viewModel.bounds = bounds
|
||||
}
|
||||
|
||||
// Then
|
||||
Reference in New Issue
Block a user