zahmis 5 лет назад
Родитель
Сommit
f23c051aa2
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/test/service/page.test.js

+ 2 - 2
src/test/service/page.test.js

@@ -355,10 +355,10 @@ describe('PageService', () => {
       pageIdMapping[parentForDuplicate._id] = newPageDummy[0]._id;
       pageIdMapping[parentForDuplicate._id] = newPageDummy[0]._id;
 
 
       await crowi.pageService.duplicateTags(pageIdMapping);
       await crowi.pageService.duplicateTags(pageIdMapping);
-      const pageTagRelationAfterDuplicateTags = await PageTagRelation.find({ relatedPage: newPageDummy });
+      const pageTagRelationAfterDuplicated = await PageTagRelation.find({ relatedPage: newPageDummy });
       const parentoForDuplicateTags = await PageTagRelation.find({ relatedPage: parentForDuplicate });
       const parentoForDuplicateTags = await PageTagRelation.find({ relatedPage: parentForDuplicate });
 
 
-      expect(pageTagRelationAfterDuplicateTags.relatedTag).toEqual(parentoForDuplicateTags.relatedTag);
+      expect(pageTagRelationAfterDuplicated.relatedTag).toEqual(parentoForDuplicateTags.relatedTag);
     });
     });
   });
   });