VaultListSyncAlertTest.kt

554 B · raw

1package com.peachpasswords.ui.vault23import com.peachpasswords.sync.SyncOutcomeReason4import org.junit.Assert.assertFalse5import org.junit.Assert.assertTrue6import org.junit.Test78class VaultListSyncAlertTest {9    @Test fun successful_sync_is_quiet_but_failures_remain_actionable() {10        assertFalse(shouldShowSyncOutcomeSnackbar(SyncOutcomeReason.COMPLETED_CHANGES))11        assertFalse(shouldShowSyncOutcomeSnackbar(SyncOutcomeReason.COMPLETED_NO_CHANGES))12        assertTrue(shouldShowSyncOutcomeSnackbar(SyncOutcomeReason.SYNC_TIMEOUT))13    }14}