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

Wire in assertion that the appropriate product is created in Stripe #90

Merged
merged 2 commits into from
Jul 13, 2020

Conversation

zspencer
Copy link
Member

See: #79

This is a big commit because it conflates the formatting changes from
#89.

That said, it's also significant in it's own right. The ClientSandbox
now has the ability to query and assert against Stripe, so we will be
able to write full integration tests.

That said we probably want to consider spinning out a fake Stripe API
so that our tests don't always perform a full end-to-end check.

Perhaps in Coruru, if something like that doesn't exist already?

See: #79

This is a big commit because it conflates the formatting changes from
#89.

That said, it's also significant in it's own right. The ClientSandbox
now has the ability to query and assert against Stripe, so we will be
able to write full integration tests.

That said we _probably_ want to consider spinning out a fake Stripe API
so that our tests don't _always_ perform a full end-to-end check.

Perhaps in Coruru, if something like that doesn't exist already?
@zspencer zspencer requested a review from user512 July 12, 2020 01:07

products() {
return new Promise((resolve, reject) => {
this.stripe.products.list({limit: 100}, (err, products) => {
Copy link
Contributor

@user512 user512 Jul 13, 2020

Choose a reason for hiding this comment

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

Is this limit: 100 from Stripe?

Nvm, it's like we do ?limit=100 and the default is 10.
https://stripe.com/docs/api/products/list#list_products-limit

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea, I figured 100 was a better default.

@user512
Copy link
Contributor

user512 commented Jul 13, 2020

I thought Coruro is used to test email, what do you have in mind in using Coruro to test product created in Stripe?

@zspencer
Copy link
Member Author

Coruro's intent is to provide a seam for fake versions of external services. That can be email (in the case of coruro-mailcatcher) or it could be things like firebase or stripe or other such services.

@zspencer zspencer merged commit 7116a5f into 0.X Jul 13, 2020
@zspencer zspencer deleted the enhance/79/wire-in-assertion-against-stripe-api branch July 13, 2020 17:53
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.

2 participants