@@ -92,7 +92,13 @@ const ipc = sinon.createStubInstance(IpcAction);
9292const grpc = sinon . createStubInstance ( GrpcAction ) ;
9393const info = sinon . createStubInstance ( InfoAction ) ;
9494const notify = sinon . createStubInstance ( NotificationAction ) ;
95- const wallet = new WalletAction ( store , grpc , db , nav , notify ) ;
95+ const payment = new PaymentAction ( store , grpc , nav , notify ) ;
96+ sinon . stub ( payment , 'checkType' ) ;
97+ sinon . stub ( payment , 'payBitcoin' ) ;
98+ sinon . stub ( payment , 'toggleMax' ) ;
99+ sinon . stub ( payment , 'payLightning' ) ;
100+ sinon . stub ( payment , 'initPayBitcoinConfirm' ) ;
101+ const wallet = new WalletAction ( store , grpc , db , nav , notify , payment ) ;
96102const setting = new SettingAction ( store , wallet , db , ipc ) ;
97103const autopilot = sinon . createStubInstance ( AtplAction ) ;
98104sinon . stub ( wallet , 'update' ) ;
@@ -104,12 +110,6 @@ const transaction = new TransactionAction(store, grpc, nav, notify);
104110sinon . stub ( transaction , 'update' ) ;
105111const invoice = new InvoiceAction ( store , grpc , nav , notify , Clipboard ) ;
106112sinon . stub ( invoice , 'generateUri' ) ;
107- const payment = new PaymentAction ( store , grpc , nav , notify ) ;
108- sinon . stub ( payment , 'checkType' ) ;
109- sinon . stub ( payment , 'payBitcoin' ) ;
110- sinon . stub ( payment , 'toggleMax' ) ;
111- sinon . stub ( payment , 'payLightning' ) ;
112- sinon . stub ( payment , 'initPayBitcoinConfirm' ) ;
113113const channel = new ChannelAction ( store , grpc , nav , notify ) ;
114114sinon . stub ( channel , 'update' ) ;
115115sinon . stub ( channel , 'connectAndOpen' ) ;
@@ -178,8 +178,8 @@ storiesOf('Screens', module)
178178 . add ( 'Loader - Syncing Chain (Mobile)' , ( ) => (
179179 < LoaderSyncingMobile store = { store } />
180180 ) )
181- . add ( 'Wait' , ( ) => < Wait /> )
182- . add ( 'Wait (Mobile)' , ( ) => < WaitMobile /> )
181+ . add ( 'Wait' , ( ) => < Wait store = { store } /> )
182+ . add ( 'Wait (Mobile)' , ( ) => < WaitMobile store = { store } /> )
183183 . add ( 'Home' , ( ) => (
184184 < Home
185185 store = { store }
0 commit comments