Skip to content

Commit

Permalink
Exclude special error localize
Browse files Browse the repository at this point in the history
  • Loading branch information
vince-hz committed Mar 11, 2024
1 parent e87ba59 commit a09e712
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Flat_Test/ApiErrorLocalizeTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import XCTest
class ApiErrorLocalizeTest: XCTestCase {
func testUnlocalizedError() {
let allErrors = FlatApiError.allCases
.filter { $0 != .RoomNotBegin || $0 != .RoomNotBeginAndAddList } // Exclude special error.
let unlocalizedErrors = allErrors.filter { error in
error.errorDescription == String(describing: error)
}
Expand Down

0 comments on commit a09e712

Please sign in to comment.