Skip to content

Commit 9dbc7b7

Browse files
committed
refactor: remove section comments
1 parent 7312e09 commit 9dbc7b7

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

app/src/test/java/to/bitkit/viewmodels/AppViewModelSendFlowTest.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ class AppViewModelSendFlowTest : BaseUnitTest() {
137137
)
138138
}
139139

140-
// -- updateCanSwitchWallet --
141-
142140
@Test
143141
fun `canSwitchWallet is false when not unified`() = test {
144142
sut.setSendEvent(SendEvent.AmountChange(1000u))
@@ -203,8 +201,6 @@ class AppViewModelSendFlowTest : BaseUnitTest() {
203201
assertFalse(sut.sendUiState.value.canSwitchWallet)
204202
}
205203

206-
// -- onPaymentMethodSwitch --
207-
208204
@Test
209205
fun `switch from lightning to onchain resets confirmedWarnings`() = test {
210206
balanceState.value = BalanceState(
@@ -251,8 +247,6 @@ class AppViewModelSendFlowTest : BaseUnitTest() {
251247
assertEquals(before, sut.sendUiState.value.payMethod)
252248
}
253249

254-
// -- onAmountChange --
255-
256250
@Test
257251
fun `amount change clears confirmedWarnings`() = test {
258252
setUnifiedState(amount = 1000u)
@@ -267,8 +261,6 @@ class AppViewModelSendFlowTest : BaseUnitTest() {
267261
assertTrue(sut.sendUiState.value.confirmedWarnings.isEmpty())
268262
}
269263

270-
// -- refreshFeeEstimates --
271-
272264
@Test
273265
fun `refreshFeeEstimates preserves lightning fee when payMethod is LIGHTNING`() = test {
274266
val lightningFee = SendFee.Lightning(42)
@@ -282,8 +274,6 @@ class AppViewModelSendFlowTest : BaseUnitTest() {
282274
assertEquals(lightningFee, currentFee)
283275
}
284276

285-
// -- lastLightningFee --
286-
287277
@Test
288278
fun `lastLightningFee persists after switching to onchain`() = test {
289279
balanceState.value = BalanceState(
@@ -310,8 +300,6 @@ class AppViewModelSendFlowTest : BaseUnitTest() {
310300
assertEquals(0L, sut.sendUiState.value.lastLightningFee)
311301
}
312302

313-
// -- helpers --
314-
315303
@Suppress("UNCHECKED_CAST")
316304
private fun setSendState(state: SendUiState) {
317305
val field = AppViewModel::class.java.getDeclaredField("_sendUiState")

0 commit comments

Comments
 (0)