@@ -20,6 +20,7 @@ import to.bitkit.data.AppStorage
2020import to.bitkit.data.keychain.Keychain
2121import to.bitkit.models.NodeLifecycleState
2222import to.bitkit.repositories.LightningRepo
23+ import to.bitkit.repositories.WalletRepo
2324import to.bitkit.services.BlocktankNotificationsService
2425import to.bitkit.test.BaseUnitTest
2526import to.bitkit.test.TestApp
@@ -38,6 +39,7 @@ class WalletViewModelTest : BaseUnitTest() {
3839 private var firebaseMessaging: FirebaseMessaging = mock()
3940 private var blocktankNotificationsService: BlocktankNotificationsService = mock()
4041 private var lightningRepo: LightningRepo = mock()
42+ private var walletRepo: WalletRepo = mock()
4143 private var appStorage: AppStorage = mock()
4244 private val addressChecker: AddressChecker = mock()
4345
@@ -64,7 +66,7 @@ class WalletViewModelTest : BaseUnitTest() {
6466 sut = WalletViewModel (
6567 bgDispatcher = testDispatcher,
6668 appContext = mock(),
67- walletRepo = mock() ,
69+ walletRepo = walletRepo ,
6870 lightningRepo = lightningRepo
6971 )
7072 }
@@ -122,7 +124,7 @@ class WalletViewModelTest : BaseUnitTest() {
122124 fun `manualRegisterForNotifications should register device with FCM token` () = test {
123125 sut.manualRegisterForNotifications()
124126
125- verify(blocktankNotificationsService).registerDevice( " cachedToken " )
127+ verify(walletRepo).registerForNotifications( )
126128 }
127129
128130 private fun setupExistingWalletMocks () {
0 commit comments