Is the following impossible to test? #72
Replies: 1 comment 1 reply
-
Hey @nashysolutions! public struct FetchToken: FetchRequest {
public let createdDate: Date
public let uuid: UUID
public var expiryDate: Date? {
createdDate.addingTimeInterval(3)
}
init() {
@Dependency(\.date) var date: DateGenerator
@Dependency(\.uuid) var uuid: UUIDGenerator
self.createdDate = date()
self.uuid = uuid()
}
} You may need to adjust your |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to test
establishToken()
but I don't think this is possible.My failing attempt
Beta Was this translation helpful? Give feedback.
All reactions