@@ -179,7 +179,9 @@ test('browser plugin integration test withRPCRedux - failure', async t => {
179179 const app = new App ( element ) ;
180180 app . register ( Plugin ) ;
181181 app . register ( FetchToken , fetch ) ;
182- await getSimulator ( app ) . render ( '/' ) ;
182+ await getSimulator ( app )
183+ . render ( '/' )
184+ . catch ( e => t . equal ( e . message , 'message' ) ) ;
183185 t . equal ( expectedActions . length , 0 , 'dispatches all actions' ) ;
184186 teardown ( ) ;
185187 t . end ( ) ;
@@ -304,7 +306,9 @@ test('browser mock integration test withRPCRedux - failure', async t => {
304306 const app = new App ( element ) ;
305307 app . register ( RPCPluginMock ) ;
306308 app . register ( RPCHandlersToken , handlers ) ;
307- await getSimulator ( app ) . render ( '/' ) ;
309+ await getSimulator ( app )
310+ . render ( '/' )
311+ . catch ( e => t . equal ( e . message , 'message' ) ) ;
308312 t . equal ( expectedActions . length , 0 , 'dispatches all actions' ) ;
309313 teardown ( ) ;
310314 t . end ( ) ;
@@ -582,7 +586,9 @@ test('browser plugin integration test withRPCReactor - failure', async t => {
582586 const app = new App ( element ) ;
583587 app . register ( RPCPluginMock ) ;
584588 app . register ( RPCHandlersToken , handlers ) ;
585- await getSimulator ( app ) . render ( '/' ) ;
589+ await getSimulator ( app )
590+ . render ( '/' )
591+ . catch ( e => t . equal ( e . message , 'Some failure' ) ) ;
586592 t . equal ( expectedActions . length , 0 , 'dispatches all actions' ) ;
587593 t . equal ( flags . start , true , 'dispatches start action' ) ;
588594 t . equal ( flags . failure , true , 'dispatches failure action' ) ;
@@ -695,7 +701,9 @@ test('browser plugin integration test withRPCReactor - failure 2', async t => {
695701 const app = new App ( element ) ;
696702 app . register ( Plugin ) ;
697703 app . register ( FetchToken , fetch ) ;
698- await getSimulator ( app ) . render ( '/' ) ;
704+ await getSimulator ( app )
705+ . render ( '/' )
706+ . catch ( e => t . equal ( e . message , 'Some failure' ) ) ;
699707 t . equal ( expectedActions . length , 0 , 'dispatches all actions' ) ;
700708 t . equal ( flags . start , true , 'dispatches start action' ) ;
701709 t . equal ( flags . failure , true , 'dispatches failure action' ) ;
0 commit comments