-
Notifications
You must be signed in to change notification settings - Fork 74
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
Fix Unit tests. #1
Conversation
tapashmajumder
commented
Jun 15, 2018
- Fix Unit tests.
- Add dependency injection via protocols and remove OCMock.
2. Add protocol dependency injection and remove OCMock.
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.
I wish there was an easier way to do mocks in Swift, but it appears that it's the only way.
LGTM
|
||
/** | ||
* This method handles user actions on incoming Iterable notifications | ||
* Call it from your notification center delegate's userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:. |
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.
I think it shouldn't mention this since it's an internal implementation.
|
||
/** | ||
* This method handles incoming Iterable notifications and actions for iOS < 10 | ||
* Call it from your app delegate's application:didReceiveRemoteNotification:fetchCompletionHandler:. |
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.
Same here.
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.
LFTM
Since these fixes have a lot to do with unit tests and should not impact the functionality much I am merging and deleting. |