Skip to content

Conversation

@juanjecilla
Copy link
Collaborator

No description provided.

@juanjecilla juanjecilla requested a review from Elvishrdz November 3, 2025 21:55
@juanjecilla juanjecilla self-assigned this Nov 3, 2025
@juanjecilla juanjecilla force-pushed the fix/hour_format branch 2 times, most recently from c9fc263 to 1285bfc Compare November 4, 2025 11:42
internal fun provideHttpLoggingInterceptor(): HttpLoggingInterceptor =
HttpLoggingInterceptor().apply {
level = HttpLoggingInterceptor.Level.HEADERS
level = HttpLoggingInterceptor.Level.BODY
Copy link
Contributor

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?

Copy link
Collaborator Author

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?

Copy link
Contributor

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`() {
Copy link
Contributor

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

Copy link
Collaborator Author

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 {
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

@juanjecilla juanjecilla merged commit 79483c8 into develop Nov 6, 2025
1 check passed
@juanjecilla juanjecilla deleted the fix/hour_format branch November 6, 2025 14:14
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.

3 participants