yohei0125 пре 4 година
родитељ
комит
d2a24b6ed9
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      packages/app/test/integration/service/v5.page.test.ts

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

@@ -1046,6 +1046,7 @@ describe('PageService page operations with only public pages', () => {
       expectAllToBeTruthy([renamedPage, renamedPageChild, newlyCreatedEmptyPage1, newlyCreatedEmptyPage2]);
       expectAllToBeTruthy([renamedPage, renamedPageChild, newlyCreatedEmptyPage1, newlyCreatedEmptyPage2]);
 
 
       expect(newlyCreatedEmptyPage1.parent).toStrictEqual(rootPage._id);
       expect(newlyCreatedEmptyPage1.parent).toStrictEqual(rootPage._id);
+      expect(renamedPage.parent).toStrictEqual(newlyCreatedEmptyPage2._id);
 
 
       expect(newlyCreatedEmptyPage1.isEmpty).toBeTruthy();
       expect(newlyCreatedEmptyPage1.isEmpty).toBeTruthy();
       expect(newlyCreatedEmptyPage2.isEmpty).toBeTruthy();
       expect(newlyCreatedEmptyPage2.isEmpty).toBeTruthy();
@@ -1072,6 +1073,7 @@ describe('PageService page operations with only public pages', () => {
       expectAllToBeTruthy([renamedPage, renamedPageChild, newlyCreatedEmptyPage1, newlyCreatedEmptyPage2]);
       expectAllToBeTruthy([renamedPage, renamedPageChild, newlyCreatedEmptyPage1, newlyCreatedEmptyPage2]);
 
 
       expect(newlyCreatedEmptyPage1.parent).toStrictEqual(rootPage._id);
       expect(newlyCreatedEmptyPage1.parent).toStrictEqual(rootPage._id);
+      expect(renamedPage.parent).toStrictEqual(newlyCreatedEmptyPage2._id);
 
 
       expect(newlyCreatedEmptyPage1.isEmpty).toBeTruthy();
       expect(newlyCreatedEmptyPage1.isEmpty).toBeTruthy();
       expect(newlyCreatedEmptyPage2.isEmpty).toBeTruthy();
       expect(newlyCreatedEmptyPage2.isEmpty).toBeTruthy();