22 actions ,
33 selectors ,
44 createStore ,
5- getHistory
5+ getHistory ,
6+ makeSource
67} from "../../utils/test-head" ;
78
89const { isStepping } = selectors ;
@@ -43,6 +44,7 @@ describe("pause", () => {
4344 const { dispatch, getState } = createStore ( mockThreadClient ) ;
4445 const mockPauseInfo = createPauseInfo ( ) ;
4546
47+ await dispatch ( actions . newSource ( makeSource ( "foo1" ) ) ) ;
4648 await dispatch ( actions . paused ( mockPauseInfo ) ) ;
4749 const stepped = dispatch ( actions . stepIn ( ) ) ;
4850 expect ( isStepping ( getState ( ) ) ) . toBeTruthy ( ) ;
@@ -66,6 +68,7 @@ describe("pause", () => {
6668 const { dispatch } = createStore ( mockThreadClient ) ;
6769 const mockPauseInfo = createPauseInfo ( ) ;
6870
71+ await dispatch ( actions . newSource ( makeSource ( "foo1" ) ) ) ;
6972 await dispatch ( actions . paused ( mockPauseInfo ) ) ;
7073 await dispatch ( actions . resumed ( ) ) ;
7174
@@ -74,6 +77,8 @@ describe("pause", () => {
7477
7578 it ( "resuming when not paused" , async ( ) => {
7679 const { dispatch } = createStore ( mockThreadClient ) ;
80+
81+ await dispatch ( actions . newSource ( makeSource ( "foo1" ) ) ) ;
7782 await dispatch ( actions . resumed ( ) ) ;
7883 expect ( getHistory ( "RESUME" ) . length ) . toEqual ( 0 ) ;
7984 } ) ;
0 commit comments