@@ -14,8 +14,6 @@ export async function mockGetMigrationStatus(migrationId: string): Promise<api.M
1414 return new Promise ( ( ) => { } ) ;
1515 case mockGetMigrationStatus . migrationIdInProgress :
1616 return mockGetMigrationStatus . migrationStatusInProgressData ;
17- case mockGetMigrationStatus . migrationIdPartial :
18- return mockGetMigrationStatus . migrationStatusPartialData ;
1917 default :
2018 /* istanbul ignore next */
2119 throw new Error ( `mockGetMigrationStatus: unknown migration ID "${ migrationId } "` ) ;
@@ -180,33 +178,4 @@ mockGetMigrationStatus.migrationStatusInProgressData = {
180178 } ,
181179 ] ,
182180} as api . MigrateTaskStatusData ;
183- mockGetMigrationStatus . migrationIdPartial = '7' ;
184- mockGetMigrationStatus . migrationStatusPartialData = {
185- uuid : mockGetMigrationStatus . migrationIdPartial ,
186- state : 'Succeeded' ,
187- stateText : 'Succeeded' ,
188- completedSteps : 9 ,
189- totalSteps : 9 ,
190- attempts : 1 ,
191- created : '' ,
192- modified : '' ,
193- artifacts : [ ] ,
194- parameters : [
195- {
196- id : 1 ,
197- source : 'legacy-lib-1' ,
198- target : 'lib' ,
199- compositionLevel : 'component' ,
200- repeatHandlingStrategy : 'update' ,
201- preserveUrlSlugs : false ,
202- targetCollectionSlug : 'coll-1' ,
203- forwardSourceToTarget : true ,
204- isFailed : false ,
205- targetCollection : {
206- key : 'coll' ,
207- title : 'Test Collection' ,
208- } ,
209- } ,
210- ] ,
211- } as api . MigrateTaskStatusData ;
212181mockGetMigrationStatus . applyMock = ( ) => jest . spyOn ( api , 'getModulestoreMigrationStatus' ) . mockImplementation ( mockGetMigrationStatus ) ;
0 commit comments