yohei0125 il y a 4 ans
Parent
commit
731e9fe614
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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;
     };