2
0
yohei0125 4 жил өмнө
parent
commit
731e9fe614

+ 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);
       const renamedPage = await crowi.pageService.renamePage(page, newPagePath, user, options);
 
 
       // retrieve the arguments passed when calling method resumableRenameDescendants inside renamePage method
       // 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
       // restores the original implementation
       mockedResumableRenameDescendants.mockRestore();
       mockedResumableRenameDescendants.mockRestore();
       mockedCreateAndSendNotifications.mockRestore();
       mockedCreateAndSendNotifications.mockRestore();
 
 
       // rename descendants
       // rename descendants
-      await crowi.pageService.resumableRenameDescendants(...argsForCreateAndSendNotifications);
+      await crowi.pageService.resumableRenameDescendants(...argsForResumableRenameDescendants);
 
 
       return renamedPage;
       return renamedPage;
     };
     };