Stabilize beta release with warning cleanup and edge-case fixes
This commit is contained in:
@@ -48,6 +48,14 @@ struct PollErrorTests {
|
||||
#expect(error.errorDescription!.lowercased().contains("owner"))
|
||||
}
|
||||
|
||||
/// - Expected Behavior: notVoteOwner explains vote ownership requirement
|
||||
@Test("errorDescription: notVoteOwner mentions owner")
|
||||
func errorDescription_notVoteOwner() {
|
||||
let error = PollError.notVoteOwner
|
||||
#expect(error.errorDescription != nil)
|
||||
#expect(error.errorDescription!.lowercased().contains("owner"))
|
||||
}
|
||||
|
||||
/// - Expected Behavior: networkUnavailable explains connection issue
|
||||
@Test("errorDescription: networkUnavailable mentions connection")
|
||||
func errorDescription_networkUnavailable() {
|
||||
@@ -83,6 +91,7 @@ struct PollErrorTests {
|
||||
.pollNotFound,
|
||||
.alreadyVoted,
|
||||
.notPollOwner,
|
||||
.notVoteOwner,
|
||||
.networkUnavailable,
|
||||
.encodingError,
|
||||
.unknown(NSError(domain: "", code: 0))
|
||||
@@ -102,6 +111,7 @@ struct PollErrorTests {
|
||||
.pollNotFound,
|
||||
.alreadyVoted,
|
||||
.notPollOwner,
|
||||
.notVoteOwner,
|
||||
.networkUnavailable,
|
||||
.encodingError
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user