@@ -72,7 +72,7 @@ test('changeCurrentProject()', (assert) => {
7272
7373test ( 'applicationLoaded()' , ( t ) => {
7474 t . test ( 'with no gist ID' , ( assert ) => {
75- testSaga ( applicationLoadedSaga , applicationLoaded ( null ) ) .
75+ testSaga ( applicationLoadedSaga , applicationLoaded ( { gistId : null } ) ) .
7676 next ( ) . call ( createProjectSaga ) .
7777 next ( ) . isDone ( ) ;
7878
@@ -81,8 +81,8 @@ test('applicationLoaded()', (t) => {
8181
8282 t . test ( 'with gist ID' , ( assert ) => {
8383 const gistId = '123abc' ;
84- testSaga ( applicationLoadedSaga , applicationLoaded ( gistId ) ) .
85- next ( ) . call ( importGistSaga , applicationLoaded ( gistId ) ) .
84+ testSaga ( applicationLoadedSaga , applicationLoaded ( { gistId} ) ) .
85+ next ( ) . call ( importGistSaga , applicationLoaded ( { gistId} ) ) .
8686 next ( ) . isDone ( ) ;
8787
8888 assert . end ( ) ;
@@ -93,7 +93,7 @@ test('importGist()', (t) => {
9393 const gistId = 'abc123' ;
9494
9595 t . test ( 'with successful import' , ( assert ) => {
96- const saga = testSaga ( importGistSaga , applicationLoaded ( gistId ) ) ;
96+ const saga = testSaga ( importGistSaga , applicationLoaded ( { gistId} ) ) ;
9797
9898 saga . next ( ) . call ( loadFromId , gistId , { authenticated : false } ) ;
9999
@@ -122,7 +122,7 @@ test('importGist()', (t) => {
122122 } ) ;
123123
124124 t . test ( 'with not found error' , ( assert ) => {
125- testSaga ( importGistSaga , applicationLoaded ( gistId ) ) .
125+ testSaga ( importGistSaga , applicationLoaded ( { gistId} ) ) .
126126 next ( ) . call ( loadFromId , gistId , { authenticated : false } ) .
127127 throw (
128128 Object . create ( new Error ( ) , { response : { value : { status : 404 } } } ) ,
@@ -132,7 +132,7 @@ test('importGist()', (t) => {
132132 } ) ;
133133
134134 t . test ( 'with other error' , ( assert ) => {
135- testSaga ( importGistSaga , applicationLoaded ( gistId ) ) .
135+ testSaga ( importGistSaga , applicationLoaded ( { gistId} ) ) .
136136 next ( ) . call ( loadFromId , gistId , { authenticated : false } ) .
137137 throw ( new Error ( ) ) . put ( gistImportError ( ) ) .
138138 next ( ) . isDone ( ) ;
0 commit comments