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

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

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