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

#29/add money commas #33

Merged
merged 2 commits into from
Oct 18, 2019
Merged

#29/add money commas #33

merged 2 commits into from
Oct 18, 2019

Conversation

ffchiangster
Copy link
Contributor

No description provided.

@serpient serpient temporarily deployed to focal--app-pr-33 October 18, 2019 01:49 Inactive
@ffchiangster ffchiangster requested a review from serpient October 18, 2019 01:49
Copy link
Collaborator

@serpient serpient left a comment

Choose a reason for hiding this comment

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

I think we can add a few more test cases and once thats passing, it should be good to go.

Also regarding commits, it's a little easier to read when you have a 70 character heading and then the rest of the description a line after. Or not, it gets cut off by github like so:
image

You can practice your rebasing if you wanted to adjust the commits!

@@ -10,7 +10,7 @@ describe('Price Formatting', () => {
expect(convertPenniesToDollars(999)).toEqual("9.99");
expect(convertPenniesToDollars(1000)).toEqual("10.00");
expect(convertPenniesToDollars(10000)).toEqual("100.00");
expect(convertPenniesToDollars(100000)).toEqual("1000.00");
expect(convertPenniesToDollars(100000)).toEqual("1,000.00");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we add a few more tests here to make sure it's working as expected?

Add these cases please:
10,000
100,000
1,000,000

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good job otherwise!!

@serpient serpient temporarily deployed to focal--app-pr-33 October 18, 2019 01:59 Inactive
@ffchiangster ffchiangster requested a review from serpient October 18, 2019 02:00
@serpient serpient temporarily deployed to focal--app-pr-33 October 18, 2019 02:04 Inactive
@serpient serpient temporarily deployed to focal--app-pr-33 October 18, 2019 02:08 Inactive
…converting pennies to dollars. Updated all test files now with commas in the dollar values.
…er prices are correctly converted to integers for the form.
Copy link
Collaborator

@serpient serpient left a comment

Choose a reason for hiding this comment

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

Thanks for the great work!

@serpient serpient merged commit b97b417 into master Oct 18, 2019
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