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

Add support for the Person resource #507

Merged
merged 1 commit into from
Oct 30, 2018
Merged

Add support for the Person resource #507

merged 1 commit into from
Oct 30, 2018

Conversation

remi-stripe
Copy link
Contributor

cc @stripe/api-libraries

it('Sends the correct request', function() {
person.create({
first_name: "John",
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This part makes no sense to me. I know it works and why but that feels like a really weird way to approach this test and I'm ~confused why we even allow this.

Copy link
Contributor

Choose a reason for hiding this comment

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

What part makes no sense?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The part where to create a brand new object (which means said object does not exist yet) you use a pre-filled fake object.

@remi-stripe remi-stripe changed the title [WIP] Add support for the Person resource Add support for the Person resource Oct 27, 2018
@remi-stripe
Copy link
Contributor Author

r? @ob-stripe

Copy link
Contributor

@ob-stripe ob-stripe left a comment

Choose a reason for hiding this comment

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

Just one comment about a missing test. LGTM otherwise.

headers: {},
data: {first_name: 'John'},
});
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing a test for update + specified auth.

@stripe-ci stripe-ci assigned remi-stripe and unassigned ob-stripe Oct 29, 2018
@remi-stripe
Copy link
Contributor Author

@ob-stripe PTAL

@remi-stripe remi-stripe assigned ob-stripe and unassigned remi-stripe Oct 30, 2018
@stripe-ci stripe-ci assigned remi-stripe and unassigned ob-stripe Oct 30, 2018
@remi-stripe remi-stripe merged commit 50d7fea into master Oct 30, 2018
@remi-stripe remi-stripe deleted the remi-add-person branch October 30, 2018 16:39
@ob-stripe
Copy link
Contributor

Released as 6.13.0.

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.

None yet

4 participants