📝 :: Update documentation

This commit is contained in:
Felix Mau
2022-05-20 15:25:35 +02:00
parent b786421871
commit 68a53add0c
3 changed files with 15 additions and 13 deletions
@@ -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() {