Przeglądaj źródła

fix var and fn names

yohei0125 3 lat temu
rodzic
commit
a4d82791b3

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

@@ -342,13 +342,13 @@ describe('Test page service methods', () => {
 
 
   describe('restart renameOperation', () => {
   describe('restart renameOperation', () => {
     const resumeRenameSubOperation = async(renamePage, pageOp) => {
     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);
       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() => {
     test('it should successfully restart rename operation', async() => {