Improve UT

This commit is contained in:
Alfonso Grillo
2023-01-31 15:25:45 +01:00
parent 2b70ef843e
commit 6029f8e26f

View File

@@ -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))
}
}