瀏覽代碼

fix var and fn names

yohei0125 4 年之前
父節點
當前提交
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() => {