yohei0125 4 лет назад
Родитель
Сommit
16d29e6c94
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/app/test/integration/service/pagev5.test.ts

+ 2 - 2
packages/app/test/integration/service/pagev5.test.ts

@@ -384,14 +384,14 @@ describe('PageService page operations with only public pages', () => {
       const duplicatedPage = await crowi.pageService.duplicate(page, newPagePath, user, isRecursively);
 
       // retrieve the arguments passed when calling method resumableDuplicateDescendants inside duplicate method
-      const argsForCreateAndSendNotifications = mockedResumableDuplicateDescendants.mock.calls[0];
+      const argsForResumableDuplicateDescendants = mockedResumableDuplicateDescendants.mock.calls[0];
 
       // restores the original implementation
       mockedResumableDuplicateDescendants.mockRestore();
       mockedCreateAndSendNotifications.mockRestore();
 
       // duplicate descendants
-      await crowi.pageService.resumableRenameDescendants(...argsForCreateAndSendNotifications);
+      await crowi.pageService.resumableRenameDescendants(...argsForResumableDuplicateDescendants);
 
       return duplicatedPage;
     };