SKError, StoreKitError, and Product.PurchaseError conform to ErrorCodeConvertible + tests#1473
Merged
Merged
Conversation
NachoSoto
commented
Apr 8, 2022
Comment on lines
94
to
113
Contributor
Author
There was a problem hiding this comment.
These are much better to test this way instead of in PurchasesTests. Though I left the original tests too.
Contributor
Author
There was a problem hiding this comment.
Now all our errors conform to this 🎉
SKError, StoreKitError, and Product.PurchaseError conform to ErrorCodeConvertible and added testsSKError, StoreKitError, and Product.PurchaseError conform to ErrorCodeConvertible + tests
d65d66e to
67c8f43
Compare
67c8f43 to
3e4cb4c
Compare
3e4cb4c to
d124750
Compare
taquitos
reviewed
Apr 11, 2022
taquitos
reviewed
Apr 11, 2022
Contributor
There was a problem hiding this comment.
This is so good that we have tests for this. I'm loving the new errors
Contributor
Author
aboedo
approved these changes
Apr 11, 2022
d124750 to
1930eb0
Compare
1930eb0 to
2d129d0
Compare
…rrorCodeConvertible` and added tests Follow up to #1437. Fixes [CF-323]
2d129d0 to
59422da
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Follow up to #1437.
Fixes CF-323