@@ -367,8 +367,8 @@ describe('when handling the save item request action', () => {
367367 } )
368368
369369 it ( 'should put a save item success action with the catalyst image' , ( ) => {
370- const { [ THUMBNAIL_PATH ] : thumbnailContent , ...modelContents } = contentsToSave
371- const { [ THUMBNAIL_PATH ] : _ , ...itemContents } = itemWithCatalystImage . contents
370+ const { [ THUMBNAIL_PATH ] : thumbnailContent , [ IMAGE_PATH ] : _imageContent , ...modelContents } = contentsToSave
371+ const { [ THUMBNAIL_PATH ] : _ , [ IMAGE_PATH ] : _itemImageContent , ...itemContents } = itemWithCatalystImage . contents
372372 return expectSaga ( itemSaga , builderAPI , builderClient , tradeService )
373373 . provide ( [
374374 [ matchers . call . fn ( reHashOlderContents ) , { } ] ,
@@ -400,8 +400,8 @@ describe('when handling the save item request action', () => {
400400 } )
401401
402402 it ( 'should put a save item success action without a new catalyst image' , ( ) => {
403- const { [ THUMBNAIL_PATH ] : thumbnailContent , ...modelContents } = contents
404- const { [ THUMBNAIL_PATH ] : _ , ...itemContents } = item . contents
403+ const { [ THUMBNAIL_PATH ] : thumbnailContent , [ IMAGE_PATH ] : _imageContent , ...modelContents } = contents
404+ const { [ THUMBNAIL_PATH ] : _ , [ IMAGE_PATH ] : _itemImageContent , ...itemContents } = item . contents
405405 return expectSaga ( itemSaga , builderAPI , builderClient , tradeService )
406406 . provide ( [
407407 [ matchers . call . fn ( reHashOlderContents ) , { } ] ,
@@ -432,8 +432,8 @@ describe('when handling the save item request action', () => {
432432 } )
433433
434434 it ( 'should put a save item success action with a new catalyst image' , ( ) => {
435- const { [ THUMBNAIL_PATH ] : thumbnailContent , ...modelContents } = newContentsContainingNewCatalystImage
436- const { [ THUMBNAIL_PATH ] : _ , ...itemContents } = itemWithCatalystImage . contents
435+ const { [ THUMBNAIL_PATH ] : thumbnailContent , [ IMAGE_PATH ] : _imageContent , ...modelContents } = newContentsContainingNewCatalystImage
436+ const { [ THUMBNAIL_PATH ] : _ , [ IMAGE_PATH ] : _itemImageContent , ...itemContents } = itemWithCatalystImage . contents
437437 return expectSaga ( itemSaga , builderAPI , builderClient , tradeService )
438438 . provide ( [
439439 [ matchers . call . fn ( reHashOlderContents ) , { } ] ,
@@ -471,8 +471,8 @@ describe('when handling the save item request action', () => {
471471 } )
472472
473473 it ( 'should put a save item success action' , ( ) => {
474- const { [ THUMBNAIL_PATH ] : thumbnailContent , ...modelContents } = contents
475- const { [ THUMBNAIL_PATH ] : _ , ...itemContents } = item . contents
474+ const { [ THUMBNAIL_PATH ] : thumbnailContent , [ IMAGE_PATH ] : _imageContent , ...modelContents } = contents
475+ const { [ THUMBNAIL_PATH ] : _ , [ IMAGE_PATH ] : _itemImageContent , ...itemContents } = item . contents
476476 return expectSaga ( itemSaga , builderAPI , builderClient , tradeService )
477477 . provide ( [
478478 [ matchers . call . fn ( reHashOlderContents ) , { } ] ,
@@ -498,8 +498,8 @@ describe('when handling the save item request action', () => {
498498 } )
499499
500500 it ( 'should save item if it is already published' , ( ) => {
501- const { [ THUMBNAIL_PATH ] : thumbnailContent , ...modelContents } = contents
502- const { [ THUMBNAIL_PATH ] : _ , ...itemContents } = item . contents
501+ const { [ THUMBNAIL_PATH ] : thumbnailContent , [ IMAGE_PATH ] : _imageContent , ...modelContents } = contents
502+ const { [ THUMBNAIL_PATH ] : _ , [ IMAGE_PATH ] : _itemImageContent , ...itemContents } = item . contents
503503 return expectSaga ( itemSaga , builderAPI , builderClient , tradeService )
504504 . provide ( [
505505 [ matchers . call . fn ( reHashOlderContents ) , { } ] ,
@@ -553,8 +553,8 @@ describe('when handling the save item request action', () => {
553553 } )
554554
555555 it ( "should update the item's content with the new hash and upload the files" , ( ) => {
556- const { [ THUMBNAIL_PATH ] : thumbnailContent , ...modelContents } = newContents
557- const { [ THUMBNAIL_PATH ] : _ , ...itemContents } = itemWithNewHashes . contents
556+ const { [ THUMBNAIL_PATH ] : thumbnailContent , [ IMAGE_PATH ] : _imageContent , ...modelContents } = newContents
557+ const { [ THUMBNAIL_PATH ] : _ , [ IMAGE_PATH ] : _itemImageContent , ...itemContents } = itemWithNewHashes . contents
558558 return expectSaga ( itemSaga , builderAPI , builderClient , tradeService )
559559 . provide ( [
560560 [
0 commit comments