-
Notifications
You must be signed in to change notification settings - Fork 0
Fix single number in hour and minute #47
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
Conversation
c9fc263 to
1285bfc
Compare
| internal fun provideHttpLoggingInterceptor(): HttpLoggingInterceptor = | ||
| HttpLoggingInterceptor().apply { | ||
| level = HttpLoggingInterceptor.Level.HEADERS | ||
| level = HttpLoggingInterceptor.Level.BODY |
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 you revert this change?
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.
What do you think about keeping BODY but only for debug?
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.
sounds good to me
| } | ||
|
|
||
| @Test | ||
| fun `toUI handles malformed time strings gracefully`() { |
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.
maybe we should rename this test, I see that is simply returning those time slots that were formatted correctly and not returning those with errors. maybe: toUI returns only properly formatted time slot times
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.
Let's rename it then,
| import org.junit.Assert.assertNull | ||
| import org.junit.Test | ||
|
|
||
| internal class AdditionalCostMapperTest { |
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.
most of the tests here are testing the time slot formatting, wasn't this tests more related to the String.hoursAndMinutesText extension than the AdditionalCosts.kt model?
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.
Yes, the problem was in the extension but with these tests, we are covering more use cases.
1285bfc to
2d78bad
Compare
No description provided.