Skip to content

Commit 0a6c542

Browse files
committed
Fix failed test
1 parent 5fd498a commit 0a6c542

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

WooCommerce/Classes/ViewRelated/JetpackSetup/JetpackSetupCoordinator.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,13 @@ private extension JetpackSetupCoordinator {
484484
}
485485

486486
// MARK: - Subtypes
487-
private extension JetpackSetupCoordinator {
487+
extension JetpackSetupCoordinator {
488488
enum JetpackCheckError: Int, Error {
489489
case missingPermission = 403
490490
}
491+
}
491492

493+
private extension JetpackSetupCoordinator {
492494
enum Constants {
493495
static let magicLinkUrlHostname = "magic-login"
494496
}

WooCommerce/WooCommerceTests/ViewRelated/JetpackSetup/JetpackSetupCoordinatorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ final class JetpackSetupCoordinatorTests: XCTestCase {
106106
case let .loadWPComAccount(_, onCompletion):
107107
onCompletion(expectedAccount)
108108
case let .fetchJetpackConnectionData(completion):
109-
completion(.success(JetpackConnectionData.fake()))
109+
completion(.failure(JetpackSetupCoordinator.JetpackCheckError.missingPermission))
110110
default:
111111
break
112112
}

0 commit comments

Comments
 (0)