Explorar el Código

fix mock return value

yohei0125 hace 4 años
padre
commit
ba2db16ae1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/app/test/integration/service/pagev5.test.ts

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

@@ -466,7 +466,7 @@ describe('PageService page operations with only public pages', () => {
 
     const duplicate = async(page, newPagePath, user, isRecursively) => {
       // mock return value
-      const mockedResumableDuplicateDescendants = jest.spyOn(crowi.pageService, 'resumableDuplicateDescendants').mockRejectedValue(null);
+      const mockedResumableDuplicateDescendants = jest.spyOn(crowi.pageService, 'resumableDuplicateDescendants').mockReturnValue(null);
       jest.spyOn(crowi.pageService, 'createAndSendNotifications').mockReturnValue(null);
       const duplicatedPage = await crowi.pageService.duplicate(page, newPagePath, user, isRecursively);