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

+ 4 - 4
packages/app/test/integration/service/v5.page.test.ts

@@ -342,13 +342,13 @@ describe('Test page service methods', () => {
 
   describe('restart renameOperation', () => {
     const resumeRenameSubOperation = async(renamePage, pageOp) => {
-      const mockedFixPathsAndDescendantCount = jest.spyOn(crowi.pageService, 'fixPathsAndDescendantCount').mockReturnValue(null);
+      const mockedPathsAndDescendantCountOfAncestors = jest.spyOn(crowi.pageService, 'fixPathsAndDescendantCountOfAncestors').mockReturnValue(null);
       await crowi.pageService.resumeRenameSubOperation(renamePage, pageOp);
 
-      const argsForRenameSubOperation = mockedFixPathsAndDescendantCount.mock.calls[0];
+      const argsForRenameSubOperation = mockedPathsAndDescendantCountOfAncestors.mock.calls[0];
 
-      mockedFixPathsAndDescendantCount.mockRestore();
-      await crowi.pageService.fixPathsAndDescendantCount(...argsForRenameSubOperation);
+      mockedPathsAndDescendantCountOfAncestors.mockRestore();
+      await crowi.pageService.fixPathsAndDescendantCountOfAncestors(...argsForRenameSubOperation);
     };
 
     test('it should successfully restart rename operation', async() => {