@@ -365,6 +365,7 @@ describe('@apostrophecms/import-export:import-page', function () {
365365 titleSortified : 'level 2 page 1' ,
366366 type : 'test-page' ,
367367 updatedAt : importedDocs . at ( 0 ) . updatedAt ,
368+ ...( importedDocs . at ( 0 ) . importedAt && { importedAt : importedDocs . at ( 0 ) . importedAt } ) ,
368369 updatedBy : {
369370 _id : null , // TODO: should be my user id
370371 title : 'System Task' ,
@@ -404,6 +405,7 @@ describe('@apostrophecms/import-export:import-page', function () {
404405 titleSortified : 'level 2 page 1' ,
405406 type : 'test-page' ,
406407 updatedAt : importedDocs . at ( 1 ) . updatedAt ,
408+ ...( importedDocs . at ( 1 ) . importedAt && { importedAt : importedDocs . at ( 1 ) . importedAt } ) ,
407409 updatedBy : {
408410 _id : null , // TODO: should be my user id
409411 title : 'System Task' ,
@@ -443,6 +445,7 @@ describe('@apostrophecms/import-export:import-page', function () {
443445 titleSortified : 'level 4 page 1' ,
444446 type : 'test-page' ,
445447 updatedAt : importedDocs . at ( 2 ) . updatedAt ,
448+ ...( importedDocs . at ( 2 ) . importedAt && { importedAt : importedDocs . at ( 2 ) . importedAt } ) ,
446449 updatedBy : {
447450 _id : null , // TODO: should be my user id
448451 title : 'System Task' ,
@@ -484,6 +487,7 @@ describe('@apostrophecms/import-export:import-page', function () {
484487 titleSortified : 'level 4 page 1' ,
485488 type : 'test-page' ,
486489 updatedAt : importedDocs . at ( 3 ) . updatedAt ,
490+ ...( importedDocs . at ( 3 ) . importedAt && { importedAt : importedDocs . at ( 3 ) . importedAt } ) ,
487491 updatedBy : {
488492 _id : null , // TODO: should be my user id
489493 title : 'System Task' ,
@@ -614,6 +618,7 @@ describe('@apostrophecms/import-export:import-page', function () {
614618 titleSortified : 'level 2 page 1' ,
615619 type : 'test-page' ,
616620 updatedAt : importedDocs . at ( 0 ) . updatedAt ,
621+ ...( importedDocs . at ( 0 ) . importedAt && { importedAt : importedDocs . at ( 0 ) . importedAt } ) ,
617622 updatedBy : {
618623 _id : null , // TODO: should be my user id
619624 title : 'System Task' ,
@@ -653,6 +658,7 @@ describe('@apostrophecms/import-export:import-page', function () {
653658 titleSortified : 'level 2 page 1' ,
654659 type : 'test-page' ,
655660 updatedAt : importedDocs . at ( 1 ) . updatedAt ,
661+ ...( importedDocs . at ( 1 ) . importedAt && { importedAt : importedDocs . at ( 1 ) . importedAt } ) ,
656662 updatedBy : {
657663 _id : null , // TODO: should be my user id
658664 title : 'System Task' ,
@@ -692,6 +698,7 @@ describe('@apostrophecms/import-export:import-page', function () {
692698 titleSortified : 'level 4 page 1' ,
693699 type : 'test-page' ,
694700 updatedAt : importedDocs . at ( 2 ) . updatedAt ,
701+ ...( importedDocs . at ( 2 ) . importedAt && { importedAt : importedDocs . at ( 2 ) . importedAt } ) ,
695702 updatedBy : {
696703 _id : null , // TODO: should be my user id
697704 title : 'System Task' ,
@@ -733,6 +740,7 @@ describe('@apostrophecms/import-export:import-page', function () {
733740 titleSortified : 'level 4 page 1' ,
734741 type : 'test-page' ,
735742 updatedAt : importedDocs . at ( 3 ) . updatedAt ,
743+ ...( importedDocs . at ( 3 ) . importedAt && { importedAt : importedDocs . at ( 3 ) . importedAt } ) ,
736744 updatedBy : {
737745 _id : null , // TODO: should be my user id
738746 title : 'System Task' ,
@@ -985,6 +993,7 @@ describe('@apostrophecms/import-export:import-page', function () {
985993 titleSortified : 'custom' ,
986994 type : 'custom-page' ,
987995 updatedAt : importedDocs . at ( 0 ) . updatedAt ,
996+ ...( importedDocs . at ( 0 ) . importedAt && { importedAt : importedDocs . at ( 0 ) . importedAt } ) ,
988997 updatedBy : {
989998 _id : null , // TODO: should be my user id
990999 title : 'System Task' ,
@@ -1024,6 +1033,7 @@ describe('@apostrophecms/import-export:import-page', function () {
10241033 titleSortified : 'custom' ,
10251034 type : 'custom-page' ,
10261035 updatedAt : importedDocs . at ( 1 ) . updatedAt ,
1036+ ...( importedDocs . at ( 1 ) . importedAt && { importedAt : importedDocs . at ( 1 ) . importedAt } ) ,
10271037 updatedBy : {
10281038 _id : null , // TODO: should be my user id
10291039 title : 'System Task' ,
@@ -1063,6 +1073,7 @@ describe('@apostrophecms/import-export:import-page', function () {
10631073 titleSortified : 'custom' ,
10641074 type : 'custom-page' ,
10651075 updatedAt : importedDocs . at ( 2 ) . updatedAt ,
1076+ ...( importedDocs . at ( 2 ) . importedAt && { importedAt : importedDocs . at ( 2 ) . importedAt } ) ,
10661077 updatedBy : {
10671078 _id : null , // TODO: should be my user id
10681079 title : 'System Task' ,
@@ -1102,6 +1113,7 @@ describe('@apostrophecms/import-export:import-page', function () {
11021113 titleSortified : 'custom level 3 page 1' ,
11031114 type : 'test-page' ,
11041115 updatedAt : importedDocs . at ( 3 ) . updatedAt ,
1116+ ...( importedDocs . at ( 3 ) . importedAt && { importedAt : importedDocs . at ( 3 ) . importedAt } ) ,
11051117 updatedBy : {
11061118 _id : null , // TODO: should be my user id
11071119 title : 'System Task' ,
@@ -1143,6 +1155,7 @@ describe('@apostrophecms/import-export:import-page', function () {
11431155 titleSortified : 'custom level 3 page 1' ,
11441156 type : 'test-page' ,
11451157 updatedAt : importedDocs . at ( 4 ) . updatedAt ,
1158+ ...( importedDocs . at ( 4 ) . importedAt && { importedAt : importedDocs . at ( 4 ) . importedAt } ) ,
11461159 updatedBy : {
11471160 _id : null , // TODO: should be my user id
11481161 title : 'System Task' ,
0 commit comments