@@ -119,8 +119,6 @@ class BookingMapperTest : BaseUnitTest() {
119119 )
120120 val staffMemberStatus = BookingStaffMemberStatus .Loaded (" Marianne Renoir" )
121121
122- whenever(currencyFormatter.formatCurrency(eq(" 55.00" ), eq(" USD" ), eq(true ))).thenReturn(" $55.00" )
123-
124122 val expectedDate = DateTimeFormatter .ofLocalizedDate(FormatStyle .FULL )
125123 .withZone(ZoneOffset .UTC )
126124 .format(start)
@@ -136,7 +134,6 @@ class BookingMapperTest : BaseUnitTest() {
136134 assertThat(model.staff).isEqualTo(staffMemberStatus)
137135 assertThat(model.location).isEqualTo(" 238 Willow Creek Drive, Montgomery AL 36109" )
138136 assertThat(model.duration).isEqualTo(" 1 hour 30 minutes" )
139- assertThat(model.price).isEqualTo(" $55.00" )
140137 assertThat(model.cancelStatus).isEqualTo(CancelStatus .Idle )
141138 }
142139
@@ -217,7 +214,7 @@ class BookingMapperTest : BaseUnitTest() {
217214 assertThat(message)
218215 .isEqualTo(
219216 UiString .UiStringRes (
220- R .string.booking_cancel_dialog_message ,
217+ R .string.booking_cancel_dialog_message_v2 ,
221218 listOf (
222219 UiString .UiStringText (customerName),
223220 UiString .UiStringText (" ${booking.order.productInfo?.name} " ),
@@ -243,7 +240,7 @@ class BookingMapperTest : BaseUnitTest() {
243240 assertThat(message)
244241 .isEqualTo(
245242 UiString .UiStringRes (
246- R .string.booking_cancel_dialog_message ,
243+ R .string.booking_cancel_dialog_message_v2 ,
247244 listOf (
248245 UiString .UiStringRes (R .string.customer_detail_guest_customer),
249246 UiString .UiStringText (" ${booking.order.productInfo?.name} " ),
@@ -279,11 +276,6 @@ class BookingMapperTest : BaseUnitTest() {
279276
280277 @Test
281278 fun `given cancellable statuses, when mapped to appointment details, then cancel button visible` () {
282- whenever(currencyFormatter.formatCurrency(any<String >(), any(), eq(true ))).thenAnswer {
283- val amount = it.getArgument<String >(0 )
284- val currency = it.getArgument<String >(1 )
285- " $currency$amount "
286- }
287279 val statuses = listOf (
288280 BookingEntity .Status .Confirmed ,
289281 BookingEntity .Status .Paid ,
@@ -301,11 +293,6 @@ class BookingMapperTest : BaseUnitTest() {
301293
302294 @Test
303295 fun `given non-cancellable statuses, when mapped to appointment details, then cancel button hidden` () {
304- whenever(currencyFormatter.formatCurrency(any<String >(), any(), eq(true ))).thenAnswer {
305- val amount = it.getArgument<String >(0 )
306- val currency = it.getArgument<String >(1 )
307- " $currency$amount "
308- }
309296 val statuses = listOf (
310297 BookingEntity .Status .Cancelled ,
311298 BookingEntity .Status .InCart ,
0 commit comments