mirror of
https://github.com/fxm90/GradientLoadingBar.git
synced 2026-06-16 12:24:31 +00:00
📝 :: Update documentation
This commit is contained in:
@@ -42,8 +42,9 @@ final class GradientLoadingBarViewModelTestCase: XCTestCase {
|
||||
notificationCenter: notificationCenter)
|
||||
|
||||
// Then
|
||||
let variable = try XCTUnwrap(viewModel.superview as? Variable, "Cast `Observable` instance to `Variable` in order to validate the initial value.")
|
||||
XCTAssertNil(variable.value)
|
||||
// The property `superview` is an optional, as well as the property `value`.
|
||||
// Therefore we can't use `XCTAssertNil` here, as this doesn't work with double optionals.
|
||||
XCTAssertEqual(viewModel.superview.value, .some(nil))
|
||||
}
|
||||
|
||||
func test_initializer_shouldSetupSuperviewObservable_withKeyWindow() {
|
||||
|
||||
Reference in New Issue
Block a user