Skip to content
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 JSONDecodingError Matchable implementation #367

Merged

Conversation

fdiaz
Copy link
Contributor

@fdiaz fdiaz commented Sep 14, 2018

Fixes #366

JSONDecodingError implementation of Matchable was missing the wrongType case.

This PR adds tests to validate this was missing and then fixes this issue.

wrongType was missing from the implementation
@apollo-cla
Copy link

@fdiaz: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/

9F19D8451EED8D3B00C57247 /* ResultOrPromiseTests.swift */,
9FADC8531E6B86D900C677E6 /* DataLoaderTests.swift */,
9FC750551D2A532D00458D91 /* Info.plist */,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is adding JSONTests.swift and sorting alphabetically.

@martijnwalraven martijnwalraven merged commit cea80fe into apollographql:master Oct 13, 2018
@fdiaz fdiaz deleted the fix-jsondecodingerror-matchable branch October 15, 2018 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSONDecodingError implementation of Matchable is missing the wrongType case.
3 participants