Skip to content

Commit

Permalink
chore(develop): update tests to use .failing when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
soucolline committed Aug 6, 2022
1 parent 2c57384 commit ce60011
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion swiftUV/App.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

import SwiftUI
import ComposableArchitecture
import Bugsnag
import Keys

@main
struct SwiftUVApp: App {
Expand Down Expand Up @@ -38,4 +40,3 @@ class AppDelegate: NSObject, UIApplicationDelegate {
return true
}
}

18 changes: 9 additions & 9 deletions swiftUVTests/AppReducerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class AppReducerTests: XCTestCase {
environment: AppEnvironment(
uvClient: .mock,
dispatchQueue: mainQueue.eraseToAnyScheduler(),
locationManager: .live
locationManager: .failing
)
)

Expand Down Expand Up @@ -63,7 +63,7 @@ class AppReducerTests: XCTestCase {
environment: AppEnvironment(
uvClient: UVClient(fetchUVIndex: { _ in return Effect(error: UVClient.Failure(errorDescription: "test"))}, fetchCityName: { _ in fatalError()}),
dispatchQueue: mainQueue.eraseToAnyScheduler(),
locationManager: .live
locationManager: .failing
)
)

Expand Down Expand Up @@ -92,7 +92,7 @@ class AppReducerTests: XCTestCase {
environment: AppEnvironment(
uvClient: .mock,
dispatchQueue: DispatchQueue.main.eraseToAnyScheduler(),
locationManager: .live
locationManager: .failing
)
)

Expand All @@ -116,7 +116,7 @@ class AppReducerTests: XCTestCase {
environment: AppEnvironment(
uvClient: .mock,
dispatchQueue: mainQueue.eraseToAnyScheduler(),
locationManager: .live
locationManager: .failing
)
)

Expand Down Expand Up @@ -144,7 +144,7 @@ class AppReducerTests: XCTestCase {
environment: AppEnvironment(
uvClient: .mock,
dispatchQueue: DispatchQueue.test.eraseToAnyScheduler(),
locationManager: .live
locationManager: .failing
)
)

Expand All @@ -165,7 +165,7 @@ class AppReducerTests: XCTestCase {
environment: AppEnvironment(
uvClient: .mock,
dispatchQueue: DispatchQueue.test.eraseToAnyScheduler(),
locationManager: .live
locationManager: .failing
)
)

Expand All @@ -187,7 +187,7 @@ class AppReducerTests: XCTestCase {
environment: AppEnvironment(
uvClient: .mock,
dispatchQueue: DispatchQueue.test.eraseToAnyScheduler(),
locationManager: .live
locationManager: .failing
)
)

Expand All @@ -207,7 +207,7 @@ class AppReducerTests: XCTestCase {
environment: AppEnvironment(
uvClient: .mock,
dispatchQueue: DispatchQueue.test.eraseToAnyScheduler(),
locationManager: .live
locationManager: .failing
)
)

Expand All @@ -227,7 +227,7 @@ class AppReducerTests: XCTestCase {
environment: AppEnvironment(
uvClient: .mock,
dispatchQueue: DispatchQueue.test.eraseToAnyScheduler(),
locationManager: .live
locationManager: .failing
)
)

Expand Down

0 comments on commit ce60011

Please sign in to comment.