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

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

@@ -243,7 +243,7 @@ describe('PageService page operations with only public pages', () => {
     const renamePage = async(page, newPagePath, user, options) => {
     const renamePage = async(page, newPagePath, user, options) => {
     // mock return value
     // mock return value
       const mockedResumableRenameDescendants = jest.spyOn(crowi.pageService, 'resumableRenameDescendants').mockReturnValue(null);
       const mockedResumableRenameDescendants = jest.spyOn(crowi.pageService, 'resumableRenameDescendants').mockReturnValue(null);
-      const mockedcreateAndSendNotifications = jest.spyOn(crowi.pageService, 'createAndSendNotifications').mockReturnValue(null);
+      const mockedCreateAndSendNotifications = jest.spyOn(crowi.pageService, 'createAndSendNotifications').mockReturnValue(null);
       const renamedPage = await crowi.pageService.renamePage(page, newPagePath, user, options);
       const renamedPage = await crowi.pageService.renamePage(page, newPagePath, user, options);
 
 
       // retrieve the arguments passed when calling method resumableRenameDescendants inside renamePage method
       // retrieve the arguments passed when calling method resumableRenameDescendants inside renamePage method
@@ -251,7 +251,7 @@ describe('PageService page operations with only public pages', () => {
 
 
       // restores the original implementation
       // restores the original implementation
       mockedResumableRenameDescendants.mockRestore();
       mockedResumableRenameDescendants.mockRestore();
-      mockedcreateAndSendNotifications.mockRestore();
+      mockedCreateAndSendNotifications.mockRestore();
 
 
       // rename descendants
       // rename descendants
       await crowi.pageService.resumableRenameDescendants(...argsForResumableRenameDescendants);
       await crowi.pageService.resumableRenameDescendants(...argsForResumableRenameDescendants);