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

Test for global stripeAccount #1191

Merged
merged 4 commits into from
Jul 15, 2021
Merged

Conversation

richardm-stripe
Copy link
Contributor

Notify

r? @stripe/api-library-reviewers
cc @stripe/api-libraries

Summary

Adds a test on top of user @lyndonbuckley's contribution #1102 (which I will merge first), to let stripeAccount be settable when initializing the stripe client, plus a test.

Copy link
Contributor

@dcr-stripe dcr-stripe left a comment

Choose a reason for hiding this comment

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

LG overall, just one comment.

// Provide a testable stripe instance
// That is, with mock-requests built in and hookable

const stripe = require('../lib/stripe');
const stripeInstance = stripe('fakeAuthToken');
const stripeInstance = (getClient || stripe)('fakeAuthToken');
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this change intentional? We don't seem to be using it anywhere.

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like a remnant from commit 0e5880a which was a WIP.
Screen Shot 2021-07-14 at 12 12 10 am

@richardm-stripe richardm-stripe merged commit 6d5d3e0 into master Jul 15, 2021
@richardm-stripe richardm-stripe deleted the richardm-add-test-account branch July 15, 2021 13:57
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.

3 participants