Răsfoiți Sursa

Merge branch 'imprv/page-v5-test-code-rename' into imprv/page-v5-test-code-duplication

yohei0125 4 ani în urmă
părinte
comite
b251a752d8
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      packages/app/test/integration/service/pagev5.test.ts

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

@@ -263,14 +263,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;
     };