Improve UT

This commit is contained in:
Alfonso Grillo
2023-01-31 15:25:45 +01:00
parent 3f5beece27
commit 29391c89d5
@@ -97,6 +97,10 @@ final class NotificationSettingsViewModelTests: XCTestCase {
// The one to one room rule ui flag should match the loudest related poll rule
XCTAssertEqual(viewModel.viewState.selectionState[.oneToOneRoom], true)
// the oneToOneRoom rule should be flagged as "out of sync"
XCTAssertTrue(self.viewModel.isRuleOutOfSync(.oneToOneRoom))
XCTAssertFalse(self.viewModel.isRuleOutOfSync(.allOtherMessages))
}
}