Skip to content

Commit 95af6c1

Browse files
authored
Remove redundant error type in ReusableFavoritingTests.swift (#1538)
* Remove redundant error type in Reusable Favoriting Tests * Revert AlertState's title to be concrete one
1 parent 2ea76a2 commit 95af6c1

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Examples/CaseStudies/SwiftUICaseStudies/04-HigherOrderReducers-ReusableFavoriting.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ struct EpisodesView_Previews: PreviewProvider {
189189
}
190190
}
191191

192-
struct FavoriteError: LocalizedError {
192+
struct FavoriteError: LocalizedError, Equatable {
193193
var errorDescription: String? {
194194
"Favoriting failed."
195195
}

Examples/CaseStudies/SwiftUICaseStudiesTests/04-HigherOrderReducers-ReusableFavoritingTests.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ final class ReusableComponentsFavoritingTests: XCTestCase {
5252
}
5353

5454
func testUnhappyPath() async {
55-
struct FavoriteError: Equatable, LocalizedError {
56-
var errorDescription: String? {
57-
"Favoriting failed."
58-
}
59-
}
6055
let scheduler = DispatchQueue.test
6156

6257
let episodes: IdentifiedArrayOf<Episode.State> = [

0 commit comments

Comments
 (0)