-
Notifications
You must be signed in to change notification settings - Fork 780
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
Expose client
for testing stub-ability
#286
Conversation
also ternary FTW
Awesome! Could you please take a moment to sign our CLA so I can merge this? https://github.com/sendgrid/sendgrid-nodejs/blob/master/CONTRIBUTING.md#cla Thanks! |
Hi @fyockm, This one finally came up to the top of our queue. Could you please repair the conflicts and I'll go ahead and merge it. To test this locally:
|
Just check in :) |
@thinkingserious I updated my branch. All tests pass locally. #277 actually exposed the client already. So, this PR boils down to a more terse (though potentially less readable?) ternary expression around Promise. At this point, very little value added in my opinion. Feel free to merge or close. |
Does your version solve this issue? |
Yes it does actually :)
It will be exposed as `sendgrid.restClient`.
…On Fri, Apr 14, 2017, 05:59 Elmer Thomas ***@***.***> wrote:
@adamreisnz <https://github.com/adamreisnz>,
Does your version solve this issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#286 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAd8QovLGd_OdbS2Z5Yyhrav_csKFa37ks5rvmJjgaJpZM4Jz6V6>
.
|
This issue will be resolved with: #378 |
also ternary FTW