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

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

@@ -231,14 +231,14 @@ describe('PageService page operations with only public pages', () => {
       const renamedPage = await crowi.pageService.renamePage(page, newPagePath, user, options);
 
       // retrieve the arguments passed when calling method resumableRenameDescendants inside renamePage method
-      const argsForCreateAndSendNotifications = mockedResumableRenameDescendants.mock.calls[0];
+      const argsForResumableRenameDescendants = mockedResumableRenameDescendants.mock.calls[0];
 
       // restores the original implementation
       mockedResumableRenameDescendants.mockRestore();
       mockedCreateAndSendNotifications.mockRestore();
 
       // rename descendants
-      await crowi.pageService.resumableRenameDescendants(...argsForCreateAndSendNotifications);
+      await crowi.pageService.resumableRenameDescendants(...argsForResumableRenameDescendants);
 
       return renamedPage;
     };