🚚 :: Restructure test cases

They are now in folders with the same name as the features
This commit is contained in:
Felix Mau
2022-08-18 21:55:15 +02:00
parent d979f65b80
commit 0ec26dfee9
10 changed files with 67 additions and 46 deletions
@@ -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
@@ -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