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

Exposing generateHeaderString as generateWebhookHeaderString #609

Merged
merged 1 commit into from
May 8, 2019

Conversation

paulasjes-stripe
Copy link
Contributor

Fixes #601

Exposes generateWebhookHeaderString so users can mock Stripe webhook events. This feature already existed within the repo, this just lets others play with it.

I moved some constants around and changed generateHeaderString to also accept an instance of stripe, in case you already have a spyable instance you want to reuse.

r? @rattrayalex-stripe @ob-stripe

@@ -1 +1,2 @@
*.node*.js
node_modules
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added this cause the linter would yell about node_modules files, which you could have in the /examples directory.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you!

Copy link
Contributor

@rattrayalex-stripe rattrayalex-stripe left a comment

Choose a reason for hiding this comment

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

Love the added docs, too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export generateHeaderString or similar testing utility
4 participants