Skip to content

Commit 2d2cb04

Browse files
committed
choir: XCTest dynamic overlay version bump
1 parent 936fb22 commit 2d2cb04

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let package = Package(
1414
"UserNotificationsClient"]),
1515
],
1616
dependencies: [
17-
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "0.2.1"),
17+
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "0.8.0"),
1818
// Dependencies declare other packages that this package depends on.
1919
// .package(url: /* package url */, from: "1.0.0"),
2020
],

Sources/RemoteNotificationsClient/Mocks.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ extension RemoteNotificationsClient {
1818
/// 2. Override only those properties that should used in the test with your test logic.
1919
/// 3. Calling any other property will fail the test thus pointing to a non desired dependency usage.
2020
public static let failing = Self(
21-
isRegisteredForRemoteNotifications: XCTUnimplemented("\(Self.self).isRegisteredForRemoteNotifications", placeholder: false),
22-
registerForRemoteNotifications: XCTUnimplemented("\(Self.self).unregisterForRemoteNotifications method not implemented.", placeholder: Void()),
23-
unregisterForRemoteNotifications: XCTUnimplemented("\(Self.self).unregisterForRemoteNotifications method not implemented.", placeholder: Void())
21+
isRegisteredForRemoteNotifications: unimplemented("\(Self.self).isRegisteredForRemoteNotifications", placeholder: false),
22+
registerForRemoteNotifications: unimplemented("\(Self.self).unregisterForRemoteNotifications method not implemented.", placeholder: Void()),
23+
unregisterForRemoteNotifications: unimplemented("\(Self.self).unregisterForRemoteNotifications method not implemented.", placeholder: Void())
2424
)
2525

2626
/// Empty mocks object

Sources/UserNotificationsClient/Mocks.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ extension UserNotificationClient {
1616
/// 1. Start with this failing object.
1717
/// 2. Override only those properties that should used in the test with your test logic.
1818
/// 3. Calling any other property will fail the test thus pointing to a non desired dependency usage.
19-
public static let failing = Self.init(addRequest: XCTUnimplemented("\(Self.self).addRequest", placeholder: Void()),
20-
delegate: XCTUnimplemented("\(Self.self).delegate", placeholder: .fatalFail),
21-
getAuthorizationStatus: XCTUnimplemented("\(Self.self).getAuthorizationStatus",placeholder: .denied),
22-
removeDeliveredNotifications: XCTUnimplemented("\(Self.self).removeDeliveredNotifications", placeholder: Void()),
23-
removePendingRequests: XCTUnimplemented("\(Self.self).removePendingRequests", placeholder: Void()),
24-
requestAuthorization: XCTUnimplemented("\(Self.self).requestAuthorization", placeholder: false))
19+
public static let failing = Self.init(addRequest: unimplemented("\(Self.self).addRequest"),
20+
delegate: unimplemented("\(Self.self).delegate", placeholder: .fatalFail),
21+
getAuthorizationStatus: unimplemented("\(Self.self).getAuthorizationStatus",placeholder: .denied),
22+
removeDeliveredNotifications: unimplemented("\(Self.self).removeDeliveredNotifications", placeholder: Void()),
23+
removePendingRequests: unimplemented("\(Self.self).removePendingRequests", placeholder: Void()),
24+
requestAuthorization: unimplemented("\(Self.self).requestAuthorization", placeholder: false))
2525

2626
/// Empty mocks object
2727
///

0 commit comments

Comments
 (0)