Skip to content

Conversation

@oscargrp
Copy link
Contributor

@oscargrp oscargrp commented Oct 18, 2019

Improved test code coverage

Changes

Updated OAuthClientTest include a test case for makeApiCall with parameters, and updated test for generateOauth1Sign to be more precise.

Screen Shot 2019-10-18 at 11 48 30 AM

Notes

I have another set of changes coming with more coverage for OAuthClientTest that I will push in another PR.

@oscargrp oscargrp changed the title Add more code coverage Add more code coverage for OAuthClient Oct 18, 2019
@coveralls
Copy link

Coverage Status

Coverage increased (+0.8%) to 88.063% when pulling e4a1c2f on oscargrp:add_more_code_coverage into 73aa0dd on intuit:develop.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.8%) to 88.063% when pulling e4a1c2f on oscargrp:add_more_code_coverage into 73aa0dd on intuit:develop.

@abisalehalliprasan
Copy link
Collaborator

@oscargrp: Thanks

@abisalehalliprasan abisalehalliprasan merged commit 88ab839 into intuit:develop Oct 18, 2019
@abisalehalliprasan
Copy link
Collaborator

🚀 PR was released in v2.0.0 hacktoberfest

abisalehalliprasan added a commit that referenced this pull request Jan 2, 2020
* Coveralls Badge Fix

* Coveralls Badge Fix:Final

* Coveralls Badge Fix : istanbul package added

* Coveralls Badge Fix + snyk added

* Coveralls Badge Fix + snyk added

* Snyk removed from Makefile

* Snyk removed for timebeing

* Add more code coverage for OAuthClient (#54)

* Add better code coverage in OAuthClient

* Fix: ValidateIdToken method and unit tests (#58)

* Fix validateIdToken tests

* Pointing README Badge to Develop

* Pointing README Badge to Develop

* Update Develop Coverage Badge

* README.md corrections

* Version Bump

Co-authored-by: Oscar Rabasa <[email protected]>
Co-authored-by: Kevin Tang <[email protected]>
abisalehalliprasan added a commit that referenced this pull request Apr 10, 2020
* Coveralls Badge Fix

* Coveralls Badge Fix:Final

* Coveralls Badge Fix : istanbul package added

* Coveralls Badge Fix + snyk added

* Coveralls Badge Fix + snyk added

* Snyk removed from Makefile

* Snyk removed for timebeing

* Add more code coverage for OAuthClient (#54)

* Add better code coverage in OAuthClient

* Fix: ValidateIdToken method and unit tests (#58)

* Fix validateIdToken tests

* Pointing README Badge to Develop

* Pointing README Badge to Develop

* Update Develop Coverage Badge

* Fix: handle not JSON content in response parsing

Some intuit API as invoice download return not JSON content (PDF in this
case). `makeApiCall` wasn't working with it because of mandatory
response body parsing.

So if the response is not JSON, we don't want to parse the body.
And simply let the caller decide what to do with it.

Co-authored-by: abisalehalliprasan <[email protected]>
Co-authored-by: Oscar Rabasa <[email protected]>
Co-authored-by: Kevin Tang <[email protected]>
Co-authored-by: abisalehalliprasan <[email protected]>
abisalehalliprasan added a commit that referenced this pull request Apr 10, 2020
* Accept HTTP status codes between 199 and 300 as successes (#78)

* Fix: handle not JSON content in response parsing (#59)

* Coveralls Badge Fix

* Coveralls Badge Fix:Final

* Coveralls Badge Fix : istanbul package added

* Coveralls Badge Fix + snyk added

* Coveralls Badge Fix + snyk added

* Snyk removed from Makefile

* Snyk removed for timebeing

* Add more code coverage for OAuthClient (#54)

* Add better code coverage in OAuthClient

* Fix: ValidateIdToken method and unit tests (#58)

* Fix validateIdToken tests

* Pointing README Badge to Develop

* Pointing README Badge to Develop

* Update Develop Coverage Badge

* Fix: handle not JSON content in response parsing

Some intuit API as invoice download return not JSON content (PDF in this
case). `makeApiCall` wasn't working with it because of mandatory
response body parsing.

So if the response is not JSON, we don't want to parse the body.
And simply let the caller decide what to do with it.

Co-authored-by: abisalehalliprasan <[email protected]>
Co-authored-by: Oscar Rabasa <[email protected]>
Co-authored-by: Kevin Tang <[email protected]>
Co-authored-by: abisalehalliprasan <[email protected]>

* Release : 2.1.0

* Release : 2.1.0

* Release : 2.1.0 : Revert back dependencies

* Release : 2.1.0 : Revert back dependencies

Co-authored-by: Zina Schroeder <[email protected]>
Co-authored-by: Sébastien Boulle <[email protected]>
Co-authored-by: Oscar Rabasa <[email protected]>
Co-authored-by: Kevin Tang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants