Skip to content

Commit 62e1011

Browse files
Jager-yoop4checo
authored andcommitted
Remove redundant error type in ReusableFavoritingTests.swift (#1538)
* Remove redundant error type in Reusable Favoriting Tests * Revert AlertState's title to be concrete one (cherry picked from commit 95af6c10c417f1c5016c365740e7e9b8a623552d) # Conflicts: # Examples/CaseStudies/SwiftUICaseStudiesTests/04-HigherOrderReducers-ReusableFavoritingTests.swift
1 parent 60e0db2 commit 62e1011

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
@@ -190,7 +190,7 @@ struct EpisodesView_Previews: PreviewProvider {
190190
}
191191
}
192192

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

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

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

5555
func testUnhappyPath() async {
56-
struct FavoriteError: Equatable, LocalizedError {
57-
var errorDescription: String? {
58-
"Favoriting failed."
59-
}
60-
}
6156
let scheduler = TestScheduler()
6257

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

0 commit comments

Comments
 (0)