-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: SPM unit tests #842
Conversation
Generated by 🚫 Danger Swift against ab16cb8 |
Appetize link: https://appetize.io/app/kphlomivkpagwqt5osw3shdoc4 |
…re no window is present
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -4,7 +4,6 @@ on: | |||
pull_request: | |||
types: | |||
- opened | |||
- edited |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌 Thanks for this + the above. No more rebuilds for edits 😅
@@ -199,14 +199,21 @@ class WebRedirectPaymentMethodTokenizationViewModel: PaymentMethodTokenizationVi | |||
) | |||
|
|||
Analytics.Service.record(events: [presentEvent, networkEvent]) | |||
|
|||
guard UIApplication.shared.windows.count > 0 else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we expect this to only fail in tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... yes, in theory. In practice if it can't find a window, the user is stuck anyway and can't proceed. This will at least try to force a completion.
I'm open to other ways of doing it though. Something with an #ifdef would probably be nicer.
@@ -371,7 +371,7 @@ class MockPrimerAPIConfigurationModule: PrimerAPIConfigurationModuleProtocol { | |||
|
|||
// MARK: - MOCKED PROPERTIES | |||
|
|||
var mockedNetworkDelay: TimeInterval = 2 | |||
var mockedNetworkDelay: TimeInterval = 0.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to see it go in this direction 👌
Description
Some changes to CI + testing setup:
Contributor Checklist
Reviewer Checklist
Before Merging
Other Stuff