-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
There was a problem hiding this 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:
You can practice your rebasing if you wanted to adjust the commits!
src/utilities/price.test.js
Outdated
@@ -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"); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job otherwise!!
220ff39
to
0716fd4
Compare
…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.
0716fd4
to
89a64f5
Compare
There was a problem hiding this 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!
No description provided.